Stéphane Ducasse wrote:
what do you want to do? what is the example?
I want to write 'a string' asCondensedCharacterArray where CondensedCharacterArray is a subclass of ClassBasedCharacterArray which is a subclass of ArrayedCollection. In the book, it inherits from CharacterArray, which was the parent class of String in his system. His implementation was: CharacterArray>>asCondensedClassBasedCharacterArray | answer | answer := CondensedClassBasedCharacterArray new: self size. 1 to: self size do: [ :each | answer at: each put: (self at: each) asCondensedClassBasedCharacter ]. ^ answer. But when I put this in ArrayedCollection, I get the error I mentioned. Sean -- View this message in context: http://forum.world.st/Creating-ArrayedCollections-tp2714552p2714625.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.