[squeak-dev] Re: The Trunk: Kernel-eem.474.mcz

Andreas Raab andreas.raab at gmx.de
Fri Jul 23 06:21:49 UTC 2010


On 7/22/2010 11:07 PM, Tobias Pape wrote:
>
> Am 2010-07-23 um 07:39 schrieb Andreas Raab:
>>
>> However, I do take Travis' point about compile time expressions. Here the whole point is that you really want the expression to be reevaluated when the defining code changes which is not easily done the above (it's possible but bothersome).
>
> I think its good to point out that it is possible to
> differentiate between one-time-expressions
> and compile-time expressions. I think an expression
> executed once, however, not at compile time can make
> a pretty good lazy initializer in the sense you mentioned.
>    Alas, I must admit that I’m not aware of an example that
> cannot be equally good expressed with the …ifNil: variant
> as with the [] once  variant.

I would have to look at VW to see where it's used but I'm not going to 
reject it off-hand because there have been a few situations in the past 
where I could have used this; mostly to preserve the identity of 
otherwise equal objects.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list