On Mon, Oct 12, 2015 at 2:07 AM, Sven Barth <pascaldra...@googlemail.com>
wrote:

> It's from Extended ISO Pascal and I don't know for how long it exists in
> FPC already, but it does so definitely for some time.
>
Thanks! I've never thought to go and read the FP documentation on "case
statement", assuming it works in turbo pascal/delphi compatible way.

About while-then. While the syntax is unlikely to break anything, it's
inconsistent with if-statement.
where, if-then is executed when condition is true.
For while-then is executed then condition is false.
Thus, while-else or while-otherwise are better. However, both syntax would
cause code incompatibility.

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

Reply via email to