Re: [fpc-pascal] How to instantiate a public type in a generic class

2015-05-26 Thread Sven Barth
Am 26.05.2015 01:20 schrieb luciano de souza luchya...@gmail.com: But, say me: is the problem I faced related to 2.4 version? In newer version, would it be possible to use something like I have proposed or will the same behviour be maintained? No, because there is no way for the compiler to

Re: [fpc-pascal] How to instantiate a public type in a generic class

2015-05-25 Thread luciano de souza
Sven, I really thoght that I had replied your message, but now, I realize I didn't do it. Actually, the fact compiler does not support the sintax I proposed, it's not very severe. In stead of passing a subtype, I can firstly create a type from the subtype and using it in the specialization:

Re: [fpc-pascal] How to instantiate a public type in a generic class

2015-05-18 Thread Sven Barth
Am 17.05.2015 20:46 schrieb luciano de souza luchya...@gmail.com: Hello listers, Using Freepascal 2.6.4, I have a problem about generics. In short, I can't specialize a class with a subtype of a type declared with public type. Let me try to explain. In dopf.pas, I have: type generic

[fpc-pascal] How to instantiate a public type in a generic class

2015-05-17 Thread luciano de souza
Hello listers, Using Freepascal 2.6.4, I have a problem about generics. In short, I can't specialize a class with a subtype of a type declared with public type. Let me try to explain. In dopf.pas, I have: type generic TdGOpfT1, T2, T3 = class(TdComponent) public type TEntities = specialize