[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re : [Help-smalltalk] Fix for extend
From: |
Mathieu Suen |
Subject: |
Re : [Help-smalltalk] Fix for extend |
Date: |
Mon, 27 Sep 2010 15:33:17 +0000 (GMT) |
Ok so the fix before (I just revert my repository) was better but it produce a
lot of Recompiling classes ... output.
And if you clean and reconfigure you get a lot of those output inside of some
Makefile.frag.
Maybe we just need to remove the Transcript output.
----- Message d'origine ----
> De : Paolo Bonzini <address@hidden>
> À : Mathieu Suen <address@hidden>
> Cc : GNU Smalltalk <address@hidden>
> Envoyé le : Sam 25 septembre 2010, 17h 42min 05s
> Objet : Re: [Help-smalltalk] Fix for extend
>
> On 09/24/2010 10:58 PM, Mathieu Suen wrote:
> > Hi Paolo,
> >
> > I have made a fix for the issue:
http://smalltalk.gnu.org/project/issue/520.
> > You can take it from my repository.
> > I am not fan of the fix but at least it work.
>
> No, it is more complicated than that. Here is a more complete testcase:
>
> Eval [
> (Object subclass: #AB)
> instanceVariableNames: 'a'.
> (Object subclass: #C)
> instanceVariableNames: 'c';
> createGetMethod: 'c';
> createSetMethod: 'c'.
> ]
>
I guess you mean (AB subclass: #C)
> Eval [
> cObj := C new.
> cObj c: 34.
> Smalltalk at: #TestObj put: cObj.
>
> AB
> instanceVariableNames: 'a b';
> createGetMethod: 'b';
> createSetMethod: 'b'.
> ^cObj c
> ]
>
> Eval [
> cObj := C new.
> cObj c: 34.
> ^cObj instVarAt: 3
> ]
>
> Eval [
> TestObj b: 12.
> AB instanceVariableNames: 'b'.
> ^TestObj b
> ]
>
> Eval [
> ^TestObj instVarAt: 1
> ]
>
> Eval [
> ^TestObj instVarAt: 2
> ]
>
> Eval [
> AB instanceVariableNames: 'b a'.
> ^TestObj b
> ]
>
> Eval [
> ^TestObj instVarAt: 1
> ]
>
> Eval [
> ^TestObj instVarAt: 3
> ]
>
> Paolo
>