Re: [fpc-devel] Generics - a general question

2011-11-19 Thread AvP
First, thanks for the detailed answer! This information may be useful for others, so I put it into the wiki: http://wiki.freepascal.org/Generics#Technical_details. Maybe there is a better place for that... A.v.P. ___ fpc-devel maillist - fpc-devel@li

Re: [fpc-devel] Generics - a general question

2011-11-19 Thread AvP
First of all, thanks for your answer. I tried to make the example as simple as possible - and simply forgot to allocate the memory :$ > Simply replacing "object" by "class" is not sufficient, because classes > need to be used differently than objects. Right, it actually needs a bit of modificatio

[fpc-devel] Generics - a general question

2011-11-18 Thread AvP
I just made a first attempt to use generics. Trying different things I figured out that the appended code compiles without any error message in FPC 2.6.0RC1 1. Is this behavior intended (generic objects)? I didn't find anything like that in the docs 2. Replacing "object" at (1) with "class" gi