[fpc-pascal] deprecated syntax is inconsistent.
flavio.etrusco at gmail.com
Thu Apr 29 15:13:08 CEST 2010
On Thu, Apr 29, 2010 at 6:44 AM, Michael Van Canneyt
<michael at freepascal.org> wrote:
> On Thu, 29 Apr 2010, Graeme Geldenhuys wrote:
>> Jonas Maebe het geskryf:
> Jonas tried to explain that this is not possible.
> Consider the following - what you propose - statements:
> A : Integer;
> deprecated : Boolean;
> The compiler cannot decide whether the 'deprecated' is a modifier or the
> name of a variable. Both are possible (deprecated is NOT a keyword) and
> With the current syntax:
> A : Integer deprecated;
> Deprecated : Boolean;
> The compiler knows in both cases what is meant.
> The matter could be resolved by making 'deprecated' and all other modifiers
> into keywords, but that would be a major backwards incompatibility.
But I firmly believe that the breakage would be really really minimal.
FPC had made backwards incompatible changes before... Please? ;)
More information about the fpc-pascal