[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Fun/Crashes with newer GCC on Debian
From: |
Paolo Bonzini |
Subject: |
Re: [Help-smalltalk] Fun/Crashes with newer GCC on Debian |
Date: |
Sun, 13 Oct 2013 15:12:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9 |
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
Re: [Help-smalltalk] Fun/Crashes with newer GCC on Debian, Paolo Bonzini, 2013/10/12