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 <pascaldra...@googlemail.com> wrote: > Am 20.11.2016 08:31 schrieb "Le Duc Hieu" <alavi...@gmail.com>: > > > > 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; > > You'll need to use nested types (they require modeswitch advancedrecords), > like this: > > === code begin === > > type > generic TGList<T> = record > public type > TSelf = specialize TGList<T>; > PGList = ^TSelf; > public > data: T; > next: PGList; > end; > > === code end === > > Note: the TSelf construct is currently needed due to a bug in the compiler. > > Regards, > Sven > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal