[fpc-devel] Semicolon before else
Aleksa Todorovic
alexione at gmail.com
Tue Jan 26 12:15:25 CET 2010
On Tue, Jan 26, 2010 at 11:27, Michael Schnell <mschnell at lumino.de> wrote:
> On 01/26/2010 07:51 AM, Daniël Mantione wrote:
>> We should encourage that.
>
> Maybe from his work he could derive an "acceptable" patch that issues an
> "ambiguity" warning just if a Semicolon decides between two
> syntactically correct code variants with different behavior.
An "acceptable" solution would need several things:
- new -S option on command line weather to accept this syntax
modification (-SE ?)
- scanner improvement (it should be scanner who stores last scanned
token with all associated info) - this is, actually the most
problematic part of solution
- bunch of test-cases
- some free time to implement it
- lot of good will to accept it :-)
More information about the fpc-devel
mailing list