Garbage Collection catch-22 with blocks

Stephen Pair spair at advantive.com
Thu Jun 24 12:02:19 UTC 1999


While were on the subject of blocks, it would be nice if DoIts could be
handled by convering the text into a block and then evaluating it without
any need for creating a temporary doIt method.  That's always nagged me.

- Stephen

> -----Original Message-----
> From: Peter Smet [mailto:peter.smet at flinders.edu.au]
> Sent: Thursday, June 24, 1999 7:47 AM
> To: squeak at cs.uiuc.edu
> Subject: Re: Garbage Collection catch-22 with blocks
>
>
> Marcel,
>
> I'm tempted to agree with you. I was implementing this for compatibility
> with another events system. I'm not sure if blocks are evil, but what is
> evil is the way they are not encapsulated. Hanging onto variables from the
> home context etc. Why not just have clean blocks with their own variables
> etc? Then you can treat them as true objects.
>
> >
> >This is probably not what you want to hear:  but how about simply
> >abandoning anObject when: #anEvent do: aBlock?
> >
> >I think Squeak is trying to tell you something:  Blocks are evil :-)
> >
> >Marcel
> >
>
>





More information about the Squeak-dev mailing list