bb3d feature request
Blitz3D Forums/Blitz3D Programming/bb3d feature request eh, in your first example b would always be 1
oh yah, thanks.
And so ended another american dream.
unger baby
[edit]Maybe he means it would be like this to the compiler:
For i = 0 To 5
For b = 0 To 5
;Blah
Next
Next
Except that wouldn't really save anything at all, except maybe a tab.
Well, I could see the equivalent of this happening:
Pseudo-code, really, but I think it works in general. In any case, I disagree with this feature request. It's illogical, in my opinion.
For N = 0 To 8 And B = 5 To 7 Next [code] Sortof like this: [code] NStart# = 0 : NEnd# = 8 : NDelta# = NEnd#-NStart# BStart# = 5 : BEnd# = 7 : BDelta# = BEnd#-BStart# For N# = NStart To NEnd B# = BStart+(N# / NDelta#)*BDelta# Next
Pseudo-code, really, but I think it works in general. In any case, I disagree with this feature request. It's illogical, in my opinion.
I did my example wrong... The idea would be to have two numbers, both starting at different values, and adding the Step value to themselves every loop. So, you could have
For a = 0 To 5 And b = 5 To 10
Next
To prevent screwups, perhaps a Start operator could be used instead of the two seperate variables.
For a = 0 To 5 And b Start 5
Anyway, it's just a crazy idea. There's some pretty good reasons why not to do it, but it could be kind of useful now that I've clarified my idea.
For a = 0 To 5 And b = 5 To 10
Next
To prevent screwups, perhaps a Start operator could be used instead of the two seperate variables.
For a = 0 To 5 And b Start 5
Anyway, it's just a crazy idea. There's some pretty good reasons why not to do it, but it could be kind of useful now that I've clarified my idea.
bah fine.
I've clarified my idea.
Not too well, though. Present a situation where this would actually be useful.
Uhm, once again, I'm going to clarify.
For t.type = each type And numberTypes = Start 0
;blah
Next
This way, it could count type instances...
I have realised how utterly useless this can be on most occasions, so
Gah, Fine, it looks like you're right again.
I'll just back away, burn the evidence of this post, and hide in my room for a few weeks.
For t.type = each type And numberTypes = Start 0
;blah
Next
This way, it could count type instances...
I have realised how utterly useless this can be on most occasions, so
Gah, Fine, it looks like you're right again.
I'll just back away, burn the evidence of this post, and hide in my room for a few weeks.
:P Well at least that one is remorlty useful
just came up with some slightly-interesting idea and posted it.
Hehe, yep. It seemed useful at the time though, maybe I forgot something. Please stop adding replies to this before I go crazy with embarassment :D