[fpc-devel] "helper" feature finished

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Apr 11 01:33:46 CEST 2011


On 10 Apr 2011, at 21:49, Florian Klämpfl wrote:

> Am 08.04.2011 09:07, schrieb Jonas Maebe:
>> 
>> On 08 Apr 2011, at 08:58, Sven Barth wrote:
>> 
>> Maybe you can do it in pass_1 instead, and add another boolean field
>> to ttypenode similar to allowed (such as classhelper_allowed). Then
>> you can set this "allowed" to true from the typecheck pass of
>> sizeof/bitsizeof/typeinfo.
> 
> Well, this is a hack as well, no?

At least it doesn't require a global variable, and it's a hack that already exists (in the sense that it won't introduce a new hack nor the same hack in an additional place, but reuse the same hack for the new functionality). So if the current "allowed"-field hack for the ttypenodes is fixed, this one should be fixable at the same time in the same way.


Jonas


More information about the fpc-devel mailing list