Re: loop do .. until end loop is surely incorrect!
- Posted by petelomax Feb 27, 2011
- 1522 views
DerekParnell said...
I understand what you are saying but I still don't agree.
Well, it remains bizarre to me that you think with entry is better than while 1 do.
DerekParnell said...
but I'm for not duplicating code.
You can always (in all the examples you gave, and any possible use of with entry) replace
while <condition> with entry do <block a> entry <block b> end while
with
while 1 do <block b> if not <condition> then exit end if <block a> end while
So I'm not letting you have the duplicate code argument.
Regards,
Pete