1. Euphoria For Loop Question
- Posted by Icy_Viking Mar 10, 2024
- 635 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 Mar 10, 2024
- 621 views
The closest would probably be
while 1 do -- something useful end while
3. Re: Euphoria For Loop Question
- Posted by Icy_Viking Mar 10, 2024
- 589 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 Mar 13, 2024
- 488 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 Mar 13, 2024
- 481 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 Mar 13, 2024
- 484 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