Actually, the second (I had added <category: 'foo'>
last week
but I forgot to send the patch to the list).
This adds #shape:, #subclass: and #instanceVariableNames: to
Class.
These methods will be called when parsing the new syntax,
but may
also be useful for those who want to stick with
message-sending.
Unlike Mike's version of #subclass:, this one does not
eliminate
the instance variables of the class if it is already
defined.
That is, after this:
Object subclass: #A!
A instanceVariableNames: 'a'!
Number subclass: #A!
class `A' will still have one instance variable named `a'.
Paolo
_______________________________________________
help-smalltalk mailing list
help-smalltalk gnu.org
http://lists.gnu.org/mailman/listinfo/help-smalltalk
|