[Goodie] Eventful LindaTalk

Rob Withers rwithers12 at mediaone.net
Mon Aug 27 07:20:52 UTC 2001


This depends on the Async code.

This is an EventTupleSpace and EventSubspace implementation that still needs
cleanup work for removing event registrations.   This depends on the Async
protocol from the previous post.

After creating an instance of EventTupleSpace, you can register for
callbacks with the protocol #when:match:send:to:.  The eventSelector is one
of (#read, #write, #take, #scan) and the match argument is a tupleTemplate
to match with.  When you send

    ets when: #write match: ('Hello' | String) send: #beep to: Smalltalk.

then you later send

    ets add: ('Hello' | 'CampSmalltalk').

then you ought to beep.  the beep will occur on the receiver's Task  (in
this case the foreground global task.

enjoy!

- Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Linda-Events.1.cs
Type: application/octet-stream
Size: 13265 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010827/9b549719/Linda-Events.1.obj


More information about the Squeak-dev mailing list