[fpc-devel] "helper" feature finished
Jonas Maebe
jonas.maebe at elis.ugent.be
Fri Apr 8 09:07:05 CEST 2011
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.
Jonas
More information about the fpc-devel
mailing list