On 16 December 2012 16:05, Ciprian Teodorov <[email protected]> wrote: > Hi Igor, > > Besides some other small comits, in NativeBoost-Core-CiprianTeodorov.103 I > have changed the way anonymous subclasses of NBExternalTypeValue and > NBExternalArray are created. > > The reason is that using the old way we would create multiple instances of > the same metaclass which is not allowed in the image. > BTW, I was getting this problem when trying to modify (add or remove) class > instance variables of the NBExternalArray.
So, your problem is that you abusing it :) Anonymous subclasses is there for sole purpose to provide common minimal protocol for their instances. If you need something else, you can just make normal subclasses. > Doing NBExternalArray class allInstances, I was clearly getting more than > one instance... > > Now the anonymous subclasses are build using > ClassBuilder>>#newSubclassOf:type:instanceVariables:from: which seems to > prevent this problem from happening. > > What do you think? Are there other ways to get around this problem? > Sure , you can use class builder, but again, you need it because you want to have more than just minimal interface. So, again, why don't just create own subclass? > Cheers, > -- > Dr. Ciprian TEODOROV > Ingénieur Développement CAO > > tél : 06 08 54 73 48 > mail : [email protected] > www.teodorov.ro -- Best regards, Igor Stasenko.
