Coroutines
Avi Bryant
avi at beta4.com
Wed Apr 28 18:37:43 UTC 2004
On Apr 28, 2004, at 10:02 AM, Jimmie Houchin wrote:
> Hello,
>
> Doing a little exploring and reading about coroutines.
>
> I don't really know much about them.
>
> Does Squeak have/support coroutines?
Yes, there are at least three ways you could implement coroutines:
- using Process and Semaphore
- using #swapSender: on ContextPart
- using Continuation from the Seaside package
The actual implementation is left as an exercise for the reader... ;)
Was there a particular use you had in mind? A lot of what coroutines
might be used for in other languages would be done with block
parameters in Smalltalk...
Avi
More information about the Squeak-dev
mailing list
|