[fpc-devel] Semicolon before else

Aleksa Todorovic alexione at gmail.com
Tue Jan 26 09:03:24 CET 2010


Thank you for your responses.

On Tue, Jan 26, 2010 at 08:23, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
> Daniƫl Mantione wrote:
>>
>> Indeed, it would be undesired to accept that semicolon. What makes me
>> uncomfortable is that he went to the trouble of modifying the compiler for
>> it. We should encourage that.
>
>
> I know, it is impressive that somebody went through all that trouble in
> modifying the compiler, but I think it would be wise for anybody in the
> future, to first mention your issues and ideas here, before simply
> implementing it.

Agree. My primary intention was not to change official language, but
to try to make a change which will help me in my work. I just shared
it with others.

Note that I fully understand how serious this change is. First, it
moves away FPC from the land of Separator to the land of Terminators.
Second, the grammar/parser is not LL(1) anymore (which is enough to
reject this change in the first place). Third (as Daniel said), it
requires change of compiler itself (else->otherwise). And so on, and
so on...

So, if this patch is useful to someone, then it's great; else (if it's
not), great again ;-)



More information about the fpc-devel mailing list