Il 13/10/2013 13:58, Holger Hans Peter Freyther ha scritto: > On Sat, Oct 12, 2013 at 06:13:46PM +0200, Paolo Bonzini wrote: > >>> [ >>> ##(Exception printNl) >>> ] >> >> compile_compile_time_constant always uses nil as the receiver. >> I think you should: >> >> (1) in parse_compile_time_constant, change the class to the metaclass >> for _gst_current_parser->currentClass >> >> (2) in compile_compile_time_constant, change the receiver to the >> instance class of the method's class (aka METACLASS_INSTANCE). > > Eval [ > ##(Exception printNl) > ] > > the currentClass is nil in this case? So you ask for using > "nil class asMetaclass"
It should not be nil, it should be UndefinedObject (so you use UndefinedObject asMetaclass). Paolo _______________________________________________ help-smalltalk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-smalltalk
