| Computers Forum Index » Computer Languages (Smalltalk) » [Fun] Classes copied in class variable... |
|
Page 1 of 1 |
|
| Author |
Message |
| Emptist... |
Posted: Sat Oct 03, 2009 11:01 am |
|
|
|
Guest
|
Hi,
I find it fun.
Create a Class TempClass.
Create another, RootClass.
Add into RootClass class variable or class instance variable a copy of
TempClass.
Now initialize RootClass and add mothods that will modify the copied
TempClass.
Then subclass RootClass.
Now all subclasses will have a TempClass being separated from global
one.
Now I have no idea whether I can put a copy of whole Class tree in
Smalltalk into this RootClass and get them to work.
Regards,
empt |
|
|
| Back to top |
|
|
|
|