Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-12-06 Thread Sven Barth
On 21.11.2016 02:05, Le Duc Hieu wrote: > Is there any entry on Mantis for me to keep track of this bug status? I've fixed that bug now (it did already work in mode Delphi by the way), so now you can use this: === code begin === type generic TGList = record public type PGList = ^speciali

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-21 Thread Sven Barth
Am 21.11.2016 08:33 schrieb "Le Duc Hieu" : > > Is there any entry on Mantis for me to keep track of this bug status? No, because I just noticed that there is one when testing for your question ;) Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lis

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-20 Thread Le Duc Hieu
Is there any entry on Mantis for me to keep track of this bug status? Thanks. On Sun, Nov 20, 2016 at 6:03 PM, Sven Barth wrote: > Am 20.11.2016 08:31 schrieb "Le Duc Hieu" : > > > > Here is the complete snippet that i wanted to create > > > > > > Type > > generic PGList = ^specialize TGList;

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-20 Thread Sven Barth
Am 20.11.2016 08:31 schrieb "Le Duc Hieu" : > > Here is the complete snippet that i wanted to create > > > Type > generic PGList = ^specialize TGList; > > generic TGList = record > data: T; > next: specialize PGList > end; You'll need to use nested types (they require modeswitch adva

[fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-19 Thread Le Duc Hieu
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 = ^specialize TGList; ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-19 Thread Le Duc Hieu
Here is the complete snippet that i wanted to create Type generic PGList = ^specialize TGList; generic TGList = record data: T; next: specialize PGList end; On Fri, Nov 18, 2016 at 11:11 PM, Le Duc Hieu wrote: > Hi, > > I'm trying to write a generic linked-list without the use of