Promises

David T. Lewis lewis at mail.msen.com
Fri Nov 4 11:45:00 UTC 2005


On Thu, Nov 03, 2005 at 07:52:31PM -0800, Andreas Raab wrote:
> Oh, and I think this example is extremely badly chosen. A better one 
> would be something like:
> 
>      "Create a new TSpace"
>      (island future new: TSpace) whenComplete:[:space|
>        "Create a new TFrame"
>        (island future new: TFrame) whenComplete:[:frame|
>          "Add TFrame to TSpace"
>          space future addChild: frame.
>        ].
>      ].
>

Thanks for the example. Now I can understand why this is important.

Dave 



More information about the Squeak-dev mailing list