Dec. 30, 2009
4:13 p.m.
You propose:
class := ClassFactory newSubclass: Point with: [ :f | f metaSide compile: 'somePoint ^ self x: 2 y: 3'. f compile: '+ arg ^ self x + arg x ..... 3' ]. ].
I find this difficult to remember.
What is difficult to remember, the API names?
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: Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.