in my 99 JOOP paper :)

Le 21/8/15 08:34, Yuriy Tymchuk a écrit :
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 <[email protected]> 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




Reply via email to