Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Declined do i=1 to 10 by 0

May
12,846
164
That leads to a never-ending do loop. I know it's a dumb thing to do, but this will do the same thing if DELTA is not defined:

Code:
do i=1 to 10 by %delta

and that's a little less dumb.

Perhaps there could be a check for the increment being 0.
 
I've done that a time or two myself, usually as I=0 to 1 BY 0. It's an easy way to create an infinite loop at the command line.
 
Back
Top