Erlang (was: Re: Generics)

Ned Konz ned at bike-nomad.com
Tue Nov 11 01:25:16 UTC 2003


On Monday 10 November 2003 3:43 pm, Eric Merritt wrote:

> > Just override #doesNotUnderstand: to do whatever you
> > want.
>
>  I was thinking more along the lines of going ahead
> and providing a nice little set of classes to handle
> this in general. Then you could just subclass
> 'ActiveObject' and automatically have a safe
> concurrent object. Of course, if I used
> #doesNotUnderstand for managing the mailbox they would
> have to name thier methods something else I guess
> maybe a leading underscore or something.

I wouldn''t bother. Here's what I'd do (see attached picture):


And then the object I'd present would be an ActiveObjectProxy instance, which 
would use its #doesNotUnderstand: method to enqueue messages for my real 
object.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawing.2.jpg
Type: image/jpeg
Size: 17620 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20031110/cafad75a/drawing.2.jpg


More information about the Squeak-dev mailing list