Re: Trying something out
Posted: Sun Jan 01, 2012 5:47 pm
Wait a minute... didn't someone already say that? Are we repeating ourselves now? It feels like deja vu.Lambda Force wrote: A stitch in time saves nine.
The focal point for Texas firearms information and discussions
https://mail.texaschlforum.com/
Wait a minute... didn't someone already say that? Are we repeating ourselves now? It feels like deja vu.Lambda Force wrote: A stitch in time saves nine.
Nobody said that in this thread.LikesShinyThings wrote:Wait a minute... didn't someone already say that? Are we repeating ourselves now? It feels like deja vu.Lambda Force wrote: A stitch in time saves nine.
Wait a minute... didn't someone already say that? Are we repeating ourselves now? It feels like deja vu.WildBill wrote:Nobody said that in this thread.LikesShinyThings wrote:Wait a minute... didn't someone already say that? Are we repeating ourselves now? It feels like deja vu.Lambda Force wrote: A stitch in time saves nine.
Isn't that a legit command in TransSQL? I'm pretty sure I've seen it in some relatively new code.sjfcontrol wrote:Hmmm, I haven't seen a "goto" in a number of decades -- you're showing your age...
It is a legit command in many languages. But it is generally considered **EVIL**LikesShinyThings wrote:Isn't that a legit command in TransSQL? I'm pretty sure I've seen it in some relatively new code.sjfcontrol wrote:Hmmm, I haven't seen a "goto" in a number of decades -- you're showing your age...
I suggest trying to be nicer to her. I understand they like shiny things. Especially if made of carbon...MasterOfNone wrote:I hear "Go to ..." from my wife all the time.
Oooo.... must... resist... desire... to... discuss.... I don't want to accidentally give this thread a theme. Besides, who wants to bore the non-programmers (especially so early in the year) with design theory?sjfcontrol wrote:It is a legit command in many languages. But it is generally considered **EVIL**LikesShinyThings wrote:Isn't that a legit command in TransSQL? I'm pretty sure I've seen it in some relatively new code.sjfcontrol wrote:Hmmm, I haven't seen a "goto" in a number of decades -- you're showing your age...
Here's what 'ruby'' has to say about it: http://raa.ruby-lang.org/project/ruby-goto/
See? Goto is still a part of our lives.LikesShinyThings wrote:Time to goto clean a gun.
Code: Select all
For Each Magazine In Rangebag
Gun.Add = Magazine
Gun.Slide.Close
Do While Gun.Magazine.Empty = False
With Gun
.Aim
.Shoot
End With
Loop
Gun.Magazine.Eject
Next Magazine
If Gun.Type <> "Glock" Then
Gun.Clean
End if
Hmmm, maybe it should start with "Goto Range""?tbrown wrote:Code: Select all
For Each Magazine In Rangebag Gun.Add = Magazine Gun.Slide.Close Do While Gun.Magazine.Empty = False With Gun .Aim .Shoot End With Loop Gun.Magazine.Eject Next Magazine If Gun.Type <> "Glock" Then Gun.Clean End if
It's better practice to use the .Range property.sjfcontrol wrote:Hmmm, maybe it should start with "Goto Range""?