[fpc-pascal] FPImage and GetDataLineStart
florian at freepascal.org
Fri Apr 22 11:18:41 CEST 2011
Am 22.04.2011 00:08, schrieb Jonas Maebe:
> 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
No. The symtablestack state is restore. But this leads to other problems
like overloaded operators for the current type being ignored.
More information about the fpc-pascal