Yes, very dirty. 2012/6/15 camille teruel <[email protected]>
> Dirty way: > You can modify > Class>>subclass:instanceVariableNames:classVariableNames:poolDictionaries:category: > like this: > > subclass: t instanceVariableNames: f classVariableNames: d > poolDictionaries: s category: cat > "This is the standard initialization message for creating a new class as > a > subclass of an existing class (the receiver)." > | newClass | > newClass := (ClassBuilder new) > superclass: self > subclass: t > instanceVariableNames: f > classVariableNames: d > poolDictionaries: s > category: cat. > newClass compile: 'initialize'. > ^newClass. > > > 2012/6/15 Conrad Taylor <[email protected]> > >> Hi, is there an automated setting which creates default new and >> initialize methods for a new class? BTW, I'm using Pharo 2.0-one-click. >> Well, I must go and thanks in advance. >> >> -- >> * >> * >> *Think different and code well*, >> >> -Conrad >> >> >> >
