1. Euphoria For Loop Question
- Posted by Icy_Viking in March
- 574 views
Hi all,
Does Euphoria have a equivalent of C's for loop
for (;;) { //do stuff }
2. Re: Euphoria For Loop Question
- Posted by axtens_bruce in March
- 560 views
The closest would probably be
while 1 do -- something useful end while
3. Re: Euphoria For Loop Question
- Posted by Icy_Viking in March
- 523 views
axtens_bruce said...
The closest would probably be
while 1 do -- something useful end while
I guess that would probably work for most things.
5. Re: Euphoria For Loop Question
- Posted by axtens_bruce in March
- 427 views
mitgedanken said...
loop do ... end loop
No, it complains about a lack of until.
-Bruce
6. Re: Euphoria For Loop Question
- Posted by andreasWagner in March
- 420 views
mitgedanken said...
loop do ... end loop
This may end with something like this:
<0132>:: Syntax error - expected to see possibly 'until', not 'end' end loop ^
mitgedanken said...
Maybe, according to the documtation, more like this
atom endofdays=0 loop do -- something useful until endofdays end loop
7. Re: Euphoria For Loop Question
- Posted by petelomax in March
- 420 views
andreasWagner said...
Maybe, according to the documtation, more like this
atom endofdays=0 loop do -- something useful until endofdays end loop
I haven't tested it, but I expect until 0 would be fine. Just so you know, Phix does not have the loop keyword, but also allows
do ... until false