[fpc-devel] Fwd: While - Otherwise Statement

Sven Barth pascaldragon at googlemail.com
Sun Oct 11 17:14:56 CEST 2015

Am 11.10.2015 15:56 schrieb "MohsenTi" <mohsen.timar at gmail.com>:
> Hi everybody
> I add new feature to FPC compiler to simplify programming.
> this is While - Otherwise working like While - Else in python and has
backwards compatibility.

Nice idea with the otherwise. I first thought that this would break
case-statements that use otherwise instead of else, but then I remembered
that the case-label-blocks can and IMHO should be terminated by ; anyway.
At least problems can be easily circumvented.

I don't know whether we'll add it to trunk, but I'll at least take a look
at your code to give you feedback.

Oh, and please provide simple tests for your feature that could be added to
our testsuite (in tests/test or tests/tbs) in case we decide to incorporate
Speaking of which: did you run the testsuite and compared the results to a
run without modifications?
(If you need help with running the testsuite or interpreting the results,
please ask, I have yet to write a wiki page for that...)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20151011/11760004/attachment.html>

More information about the fpc-devel mailing list