Bad programming style

Blitz3D Forums/Blitz3D Programming/Bad programming style

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.


It is totally new to me that a for loop is using the stack. stack is used for nested function calls to find the return adress. For is basicly only a variable and a label including a branch-on-condition command



Actually, I found this argument made good sense. So with any luck, he speaks truth.

Graythe, that's all very well and good. But, stuff like this is more of a nuisance to deal with:
for x=1 to 100
 for y=1 to 10
  for z=1 to 5
   if (condition) then return
  next
 next
next

Of course, it's possible to get around it. It's just a nuisance. If it's not going to overflow the stack, I'd much prefer to keep on exiting from nested loops the "bad" way.