[fpc-devel] Semicolon before else

Marco van de Voort marcov at stack.nl
Tue Jan 26 10:41:48 CET 2010


In our previous episode, Aleksa Todorovic said:
> >> But in that case what's needed is not a simple change to this one case
> >> but an option to accept Modula-2 style syntax where you've got
> >> if...then...end; etc. hence eliminating the "dangling else" problem.
> >
> > Agree fully, that's how Wirth solved it, and I like it still best.

> Indeed, that would be far better solution. But, I wonder how many
> people out there would be interested in having support for Modula2
> syntax inside fpc...?

I don't think this is worth fixing in the Pascal modes at all. Sometimes
compatibility simply weights more heavily.

But I've been dreaming of a M2 mode in FPC for quite some time. It would fit
rather nicely.



More information about the fpc-devel mailing list