Am 11.10.2015 23:56 schrieb "Steve Smith" <fsk...@yahoo.com>:
>
> Am I being stupid? It's late here so...
>
> What's wrong with....
>
> === code begin ===
>
> while bool do
>    foo;
> bar;
>
> or
>
> repeat
>    foo;
> until bool;
>
> bar;
>
> === code end ===

You know... You got me there...
Though at least for the while-loop it may have a use if one defines the
then-clause as being executed only if the loop was entered once. Or - using
a different keyword - if the loop was never executed.
The repeat-loop however is always executed at least once, so there it's
completely useless indeed...

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to