[fpc-pascal] FPImage and GetDataLineStart

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Apr 22 00:08:16 CEST 2011


On 21 Apr 2011, at 23:26, Sven Barth wrote:

> On 21.04.2011 21:45, Michael Van Canneyt wrote:
>> Threefold:
>> a) The compiler's handling of generics is still beta code in my opinion.
>> As far as I know, the original problem I reported when writing the docs
>> for them is still not solved.
> 
> May I ask out of curiosity which problem you mean?

The main problem with generics as they are implemented in FPC, is that they are basically macros. That means if you use a type "tsomerecord" in a generic implementation, and in a unit in which the generic is specialised another type with that name is visible, this other type will suddenly be used. The same goes for functions and every other identifier, because it's a token record/replay mechanism.


Jonas


More information about the fpc-pascal mailing list