[fpc-devel] "helper" feature finished
Florian Klämpfl
florian at freepascal.org
Sun Apr 10 21:49:46 CEST 2011
Am 08.04.2011 09:07, schrieb Jonas Maebe:
>
> On 08 Apr 2011, at 08:58, Sven Barth wrote:
>
>> You basically suggest to extend ttypenode.typecheck_pass to check
>> for a class helper, correct? If so then the problem is that I can't
>> check whether I'm inside one of the three allowed syssyms as no
>> node is generated for them (yet). Also typecheck_pass is already
>> called inside comp_expr (by postfixoperators) so I can't even say
>> to simply not do do_typecheckpass_changed.
>
> 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?
More information about the fpc-devel
mailing list