On 10.04.2011 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:
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?
At least I can't comment on this yet, as I yet have to try that (I'll do
that tomorrow morning on my ride to Munich ^^).
Regards,
Sven
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel