[Pharo5] Improvements for Anonymous classes
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
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.denker@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
Hi Yuriy You can read a SO thread here: http://stackoverflow.com/questions/14196417/is-it-possible-to-extend-an-indi... Cheers, Hernán 2015-08-21 3:34 GMT-03:00 Yuriy Tymchuk <yuriy.tymchuk@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.denker@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
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 <marcus.denker@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
2015-08-21 2:38 GMT-03:00 Marcus Denker <marcus.denker@inria.fr>:
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.
Yes!!! Thank you for bringing this :) Hernán
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
participants (4)
-
Hernán Morales Durand -
Marcus Denker -
stepharo -
Yuriy Tymchuk