help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Extending classes


From: Joachim Jaeckel
Subject: Re: [Help-smalltalk] Extending classes
Date: Tue, 26 May 2009 11:42:18 +0200
User-agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103)

Sorry for the uneccessary question!

I should delete the word 'class' in the extension!

only MyTest extend [

and everything worked fine.



Joachim Jaeckel schrieb:
Hello again.

I was trying to test the class-extending in smalltalk, therefore I created a small file with the following content:

Object subclass: MyTest [

        foo [
        ]

        bar [
        ]
]

MyTest class extend [

        additionalFoo [
        ]

        additionalBar [
        ]
]

but if I afterwards do a:

MyTest inspect

Only both initial methods (foo and bar) are shown in the method-dictionary. Do I have an error in the class-extension? (I think, the new methods should be shown in the method-dictionary, shouldn't they?)

Thanks in advance,
Joachim.


_______________________________________________
help-smalltalk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-smalltalk







reply via email to

[Prev in Thread] Current Thread [Next in Thread]