[fpc-devel] Semicolon before else

Aleksa Todorovic alexione at gmail.com
Fri Jan 29 11:53:38 CET 2010


On Fri, Jan 29, 2010 at 11:42, Michael Van Canneyt
<michael at freepascal.org> wrote:
>
> It breaks the behavious of case:
>
> case b of
>  1 : something;
>  2 : If a then
>       DoSomethingElse;
> else
>  DoElse
> end;
>
> As it is now, b=2 and a=False will result in no code executed.
>
> After the patch, B=2 and a=False will result in DoElse.
>

Have you actually tried it? I've tested those cases and they should work.

> So _if_ this patch is to be applied, then it must be with an appropriate -S
> command-line switch.

Absolutely! But in the first instance, we need to choose if this is
actually going to be part of FPC or not.



More information about the fpc-devel mailing list