[fpc-pascal] generic, specialize keywords in mode delphi in FPC trunk
cobines
cobines at gmail.com
Mon Apr 11 22:22:04 CEST 2011
Hello.
Following program:
program a;
{$mode delphi}
type
generic TGen<T> = class end;
TSpc = specialize TGen<Integer>;
begin
end.
compiles with FPC 2.4.2, but not with 2.5.1 rev. 17306:
a.pas(4,11) Fatal: Syntax error, "=" expected but "identifier TGEN" found
a.pas(5,21) Error: Identifier not found "specialize"
a.pas(5,21) Error: Error in type definition
a.pas(5,21) Fatal: Syntax error, ";" expected but "identifier TGEN" found
"generic" and "specialize" are not allowed in delphi mode in 2.5.1 but
they are required in 2.4.2.
Is this a conscious change? There is no mention of this on Wiki User
Changes 2.4.4 or User Changes Trunk pages.
--
cobines
More information about the fpc-pascal
mailing list