Re: Minimalism and Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message
ChrisB said...
I = 1 
while 1 do 
     Do stuff 
     I += 1 (or other) 
     If I = 100 then exit end if 
end while 

While well intentioned, Chris, I think you might mean ...

I = 1 
label "LoopTop" 
if I <= 100 then 
     Do stuff 
     I = I + 1 
     goto "LoopTop" 
end if 

Actually, in the first program I ever wrote, I didn't know about looping so I did something like this ...

 
     Do stuff 
     Do stuff 
     Do stuff 
     Do stuff 
     ...  '96 more lines just the same' 
 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu