[fpc-pascal] Is there a way to create a generic pointer to a generic record
Le Duc Hieu
alaviss0 at gmail.com
Fri Nov 18 17:17:11 CET 2016
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 <alaviss0 at gmail.com> 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>;
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20161118/13d53ea4/attachment.html>
More information about the fpc-pascal
mailing list