The Un-Named
2006-06-09 19:58:46
I've always wonderd what will happen when you change Until False; to true, well today I found out!
begin
repeat
writeln('lol');
until True;
end.
I think it only dose it 1 time because scar reads it like this:
repeat, ok
*says lol*
ok the loop has ended
Doubt you could use it for much but meh. ;)
Also, if you do for i := 0 to i do blah; it repeats forever, I think because scar reads it like this:
i is 0 and we want to repeat until i(or 0), but we haven't repeated yet so lets repeat (repeats), but we haven't repeated for 1 to 1
begin
repeat
writeln('lol');
until True;
end.
I think it only dose it 1 time because scar reads it like this:
repeat, ok
*says lol*
ok the loop has ended
Doubt you could use it for much but meh. ;)
Also, if you do for i := 0 to i do blah; it repeats forever, I think because scar reads it like this:
i is 0 and we want to repeat until i(or 0), but we haven't repeated yet so lets repeat (repeats), but we haven't repeated for 1 to 1