Main Page | Report this Page
Computers Forum Index  »  Computer Languages (Smalltalk)  »  [Fun] Classes copied in class variable...
Page 1 of 1    

[Fun] Classes copied in class variable...

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
 
 
Page 1 of 1    
All times are GMT
The time now is Sun Nov 29, 2009 2:10 pm