Re: [fpc-devel] understanding generics

2009-11-13 Thread Paul Ishenin
Paul Ishenin wrote: Florian Klaempfl wrote: Probably something wrong with nested token replay. Exactly. As I see, tscannerfile.startreplaytokens needs to be fixed. It get the new buf and does preserve/restore the old. As result new nested specialize brokes scanner. I made a patch for this:h

Re: [fpc-devel] understanding generics

2009-11-13 Thread Paul Ishenin
Florian Klaempfl wrote: Probably something wrong with nested token replay. Exactly. As I see, tscannerfile.startreplaytokens needs to be fixed. It get the new buf and does preserve/restore the old. As result new nested specialize brokes scanner. Best regards, Paul Ishenin.

Re: [fpc-devel] understanding generics

2009-11-13 Thread Florian Klaempfl
Paul Ishenin schrieb: > Hello, FPC developers' list > > I am trying to understand how to add an enumerator support to the fgl > containers. Seems it is imposible. > > I need enumerator to return the same type as generic container. So I > declared enumerator class as generic too. But how to use it

[fpc-devel] understanding generics

2009-11-13 Thread Paul Ishenin
Hello, FPC developers' list I am trying to understand how to add an enumerator support to the fgl containers. Seems it is imposible. I need enumerator to return the same type as generic container. So I declared enumerator class as generic too. But how to use it inside the generic container c