Hi Yuriy You can read a SO thread here:
http://stackoverflow.com/questions/14196417/is-it-possible-to-extend-an-individual-object-in-smalltalk/14202534#14202534 Cheers, Hernán 2015-08-21 3:34 GMT-03:00 Yuriy Tymchuk <yuriy.tymc...@me.com>: > Hi, where can I read more about anonymous classes. They look like amazing > stuff to be used in tests. > > Uko > > > > On 21 Aug 2015, at 08:38, Marcus Denker <marcus.den...@inria.fr> wrote: > > > > Hi, > > > > Besides cleaning for the bootstrap, another thing we did yesterday was > improving handling of > > Anonymous classes. > > > > 1) you can now browse methods of anonymous classes with nautilus *if* > they inherit from Object (the main case) > > > > myClass := Object newAnonymousSubclass. myClass compile: 'test > ^5'. myClass browse > > > > 2) #classInstaller for anonymous classes now returns an > AnonymousClassInstaller > > > > 3) class builder name checking was fixed to not raise an error for the > “names” used for Anonymous classes > > > > ==> you can use #addSlot: on anonymous classes. > > > > > > To improve: > > > > - browser should show some kind of class definition so one can see the > superclass > > - it would be nice to be able to browse "Behavior new”, but in most > cases people use > > anon subclasses of existing classes, so not that important. > > > > Marcus > > >