Alexandre Bergel <alexan...@...> writes: > I feel yes. In the code you gave, there are 4 hard-to-remember > keywords (ClassFactory, newSubclass:, with:, metaSide), without > counting the block declaration. > Variable declaration is possible using a method > #createClassNamed:superclass:ivs:
It's a new API, so you have to learn it, yes. It's regular and rather small though. You start with #newClass #newClassWith: aBlock #newSubclass: aClass #newSubclass: aClass with: aBlock and continue within the block with #classSide ... #declareInstVar: name #compileGetterFor: name #compileSetterFor: name #compileAccessorsFor: name #compile: sourceString of which you typically need the last two only. C'est tout :) --AA _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project