Am 22.03.2013 02:32 schrieb "Xiangrong Fang" <xrf...@gmail.com>: > > Hi, > > I missed the key point. This bug should be fixed in 2.7.1, but I am now using 2.6.0. Now there is another problem: > > If I change my code to this: > > > TTreapEnumerator = class > FStack: TStack; > FCurrent: PNode; > public > constructor Create(root: PNode); > > destructor Destroy; override; > function MoveNext: Boolean; > property Current: PNode read FCurrent; > end; > > The problem is gone, because PNode is not a generic class, but only a record. However, the following errors are generated:
2.6.x does not support nested types in generics. Generic fixes and improvements are only found in 2.7.1 as most of them were to invasive to be merged back. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal