This post originated from an RSS feed registered with Agile Buzz
by James Robertson.
Original Post: Class Creation question
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Darren Hobbs wonders about the new method of class creation in VisualWorks (new since 1999 - which is to say, not that new :) ):
Hmm. VisualWorks has namespaces, which Smalltalk-80 does not, and they seem to have changed the way subclasses are defined. According to my copy of the purple book, a subclass is created by sending a class the message 'subclass:'. It should be possible to implement a version of subclass in the Creature class that adds the extra code.
However, VisualWorks wants me to send 'defineClass:' to a namespace. Problem with that is I want to change the way subclasses of a particular class are defined. If I change the code in the NameSpace class that will affect every class that is ever created thereafter.
How is this different than before? Prior to namespaces, if I modified the class creation method in class Behavior, I ran into the same issue. Nothing but the message recipient has changed, IMHO...