Dec. 29, 2009
9:40 a.m.
To create a method on the class side do
class := ClassFactory newSubclass: Point with: [ :f | f forClass: [ :cf | cf compile: 'somePoint ^ self x: 2 y: 3' ]].
the forClass: is not really good to indicate class side. Then why all these blocks? Do we need a specific DSL (it looks to me that smalltalk got into dsl plague). why without the block is it not good: class := ClassFactory newSubclass: Point with: [ :f | f metaSide compile: 'somePoint ^ self x: 2 y: 3'. f compile: '+ arg ^ self x + arg x ..... 3' ]. ].