[fpc-pascal] Generic syntax that compiles with FPC 2.4.4 but not with FPC 2.6.0-0.rc1

Juha Manninen juha.manninen62 at gmail.com
Wed Nov 23 23:50:47 CET 2011


2011/11/24 Jonas Maebe <jonas.maebe at elis.ugent.be>

> The syntax is now:
>
> type
>  generic TGen<_T> = class
>    public type
>      T_TArray = array of _T;
>    private var
>      w: T_TArray;
>   public
>     constructor Create(Value: _T);
>  end;
>
>  TSpecial = specialize TGen<integer>;
>
> I.e., type, var etc are now inside public/private/protected sections,
> rather than that you have public/private/protected sections inside type/var
> blocks (Delphi-compatible and more logical). It should be added to
> User_Changes_2.6.0 though.
>

Works.
Thanks for the quick answer.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111124/9ae08a9f/attachment.html>


More information about the fpc-pascal mailing list