[squeak-dev] FW: BlockClosure vs BlockContext

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Ted
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] FW: BlockClosure vs BlockContext

Ted

Hi,
I'm going through the Mentoring book by Andres Valloud and was trying
to implement the ComplexConditions, which is basically a collection of
blocks. To create one of those, the book suggests to implement #, in
BlockClosure. To my surprise this didn't work, and I had to implement
it in BlockContext instead.
As the class comment for both classes is almost identical, I wondered
if someone can explain what the difference is between them and which
of those gets used when.
Thanks in advance,
Ted






Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: FW: BlockClosure vs BlockContext

Klaus D. Witzel
Hi Ted,

on Wed, 02 Apr 2008 13:38:51 +0200, you wrote:

>
> Hi,
> I'm going through the Mentoring book by Andres Valloud and was trying
> to implement the ComplexConditions, which is basically a collection of
> blocks. To create one of those, the book suggests to implement #, in
> BlockClosure. To my surprise this didn't work, and I had to implement
> it in BlockContext instead.

BlockClosure (and its companion class ClosureEnvironment) are part of  
Squeak's NewCompiler project,

- http://news.squeak.org/2006/10/09/the-newcompiler-project/

> As the class comment for both classes is almost identical, I wondered
> if someone can explain what the difference is between them and which
> of those gets used when.

Unless you have an .image with NewCompiler loaded and activated, you  
should use BlockContext.

HTH.

/Klaus

> Thanks in advance,
> Ted


Ted
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: FW: BlockClosure vs BlockContext

Ted
Hi Klaus,

> BlockClosure (and its companion class ClosureEnvironment) are part of
> Squeak's NewCompiler project,
>
> - http://news.squeak.org/2006/10/09/the-newcompiler-project/
>

Thanks, looks very interesting. Any idea which version this will
become part of the general release?

Ted


Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Re: FW: BlockClosure vs BlockContext

Klaus D. Witzel
On Fri, 04 Apr 2008 16:08:05 +0200, Ted Bracht wrote:

> Hi Klaus,
>
>> BlockClosure (and its companion class ClosureEnvironment) are part of
>> Squeak's NewCompiler project,
>>
>> - http://news.squeak.org/2006/10/09/the-newcompiler-project/
>>
>
> Thanks, looks very interesting. Any idea which version this will
> become part of the general release?

I think that NewCompiler is in Damien's squeak-dev image, loadable from  
Universe

- http://damien.cassou.free.fr/squeak-dev.html

@Math, is the latest and greatest the one in Universe?

> Ted
>
>
>