Sept. 26, 2010
7:17 p.m.
Am 2010-09-26 um 19:53 schrieb Sean P. DeNigris:
I'm subclassing ArrayedCollection while coding the examples from A Mentoring Course in Smalltalk, but I can't figure out how to create one!
ClassBasedCharacterArray is a subclass of ArrayedCollection ClassBasedCharacterArray newFrom: 'a string' -> error: ClassBasedCharacterArray cannot have variable sized instances. Huh?
Behavior class>>new: calls Behavior class>>basicNew: which calls Behavior class>>isVariable which returns false.
How does string get around this to create instances? I DebugIt-ed 'a string', but couldn't follow it in the debugger for some reason.
Sean, how did you subclass from ArrayedCollection? So Long, -Tobias