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 > > > > > > Typ

[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 w

Re: [fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

2015-03-10 Thread Le Duc Hieu
From my observation while debugging, local variable inside procedure/functions usually contains garbage value (not initialized).