Here is the complete snippet that i wanted to create
Type
generic PGList<T> = ^specialize TGList<T>;
generic TGList<T> = record
data: T;
next: specialize PGList<T>
end;
On Fri, Nov 18, 2016 at 11:11 PM, Le Duc Hieu <[email protected]> wrote:
> Hi,
>
> I'm trying to write a generic linked-list without the use of classes and
> objects.
>
> I need to be able to create generic pointer like this:
>
> Type
> generic PGList<T> = ^specialize TGList<T>;
>
>
>
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal