Re: [fpc-pascal] Type used to specialize a generic

2014-11-23 Thread Sven Barth
On 23.11.2014 19:15, Joao Morais wrote: Em 23/11/14 15:49, Sven Barth escreveu: Am 23.11.2014 18:11 schrieb "Joao Morais" mailto:l...@joaomorais.com.br>>: > > > Hello list, is there a safe way to know the PTypeInfo, or at least the string literal of the type(s) used to specialize a generic? No

Re: [fpc-pascal] Type used to specialize a generic

2014-11-23 Thread Joao Morais
Em 23/11/14 15:49, Sven Barth escreveu: Am 23.11.2014 18:11 schrieb "Joao Morais" >: > > > Hello list, is there a safe way to know the PTypeInfo, or at least the string literal of the type(s) used to specialize a generic? No, you can't. There might be something

Re: [fpc-pascal] Type used to specialize a generic

2014-11-23 Thread Sven Barth
Am 23.11.2014 18:11 schrieb "Joao Morais" : > > > Hello list, is there a safe way to know the PTypeInfo, or at least the string literal of the type(s) used to specialize a generic? No, you can't. There might be something for this in the future, because I'll need something like that myself, but it

[fpc-pascal] Type used to specialize a generic

2014-11-23 Thread Joao Morais
Hello list, is there a safe way to know the PTypeInfo, or at least the string literal of the type(s) used to specialize a generic? Eg: TBarList = specialize TGenericList On the sample above, starting with PTypeInfo of TBarList I know it was specialized using TBar type. I was using the fo