Instance-specific behavior question (like Ruby?)
stéphane ducasse
ducasse at iam.unibe.ch
Tue Mar 23 14:58:20 UTC 2004
If you want to go deeper you can read a survey I wrote some years ago
on related topic.
www.iam.unibe.ch/~ducasse/ (Publications Joop paper) but the code
was only tested on VisualWorks
On 23 mars 04, at 09:00, Poster at Kinetium dot Com wrote:
> I am somewhat familiar with the idiom of doing instance specialization
> by
> overriding "doesNotUnderstand".
>
> Ruby provides a different and more direct way of doing such prototype
> based
> programming: it simply makes the instance belong to a new (anonymous)
> class,
> and puts any instance-specific behavior on that class. It provides a
> syntax
> to define that behavior (since the class is anonymous).
>
> Is there a way to do this in Squeak? I'm a relative Squeak newbie ...
Stef www.iam.unibe.ch/~ducasse/ [ | ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 860 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040323/c7fcca8d/attachment.bin
More information about the Squeak-dev
mailing list
|