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 <[hidden email]> 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 reply to this post by Marcus Denker-4
2015-08-21 2:38 GMT-03:00 Marcus Denker <[hidden email]>: Hi, Yes!!! Thank you for bringing this :) Hernán To improve: |
In reply to this post by Uko2
Hi Yuriy Cheers,You can read a SO thread here: http://stackoverflow.com/questions/14196417/is-it-possible-to-extend-an-individual-object-in-smalltalk/14202534#14202534 2015-08-21 3:34 GMT-03:00 Yuriy Tymchuk <[hidden email]>: Hi, where can I read more about anonymous classes. They look like amazing stuff to be used in tests. |
In reply to this post by Uko2
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 <[hidden email]> 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 > > |
Free forum by Nabble | Edit this page |