On 10/31/2009 01:57 PM, Roland Plüss wrote:
> No, you declared the Smalltalk struct incorrectly.
What did I do wrong there?
You omitted all the variables that are part of every class. Try "Class
allInstVarNames".
Maybe I need to do a hack then by having a class side object which just
holds a pointer ( not the variable itself ).
No, why?
Note that singletons can always be broken. #initialize can be broken
with #basicNew. In fact, everything in Smalltalk can be broken, since
there are no private methods. But I wouldn't worry about that.
Now that I understand more, anyway, I agree that the best thing to do is
what you were doing in the beginning---but with the class variable names
declared correctly based on the output of "Class allInstVarNames".
If you have problems, you can also consider going on the #gnu-smalltalk
IRC channel on freenode.net.
Paolo
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk