[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Extending classes
From: |
Joachim Jaeckel |
Subject: |
[Help-smalltalk] Extending classes |
Date: |
Tue, 26 May 2009 11:03:06 +0200 |
User-agent: |
Mozilla-Thunderbird 2.0.0.19 (X11/20090103) |
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] Extending classes,
Joachim Jaeckel <=