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

Frank Shearar frank.shearar at angband.za.org
Fri Jul 23 09:34:02 UTC 2010


On 2010/07/22 20:42, commits at source.squeak.org wrote:
> Eliot Miranda uploaded a new version of Kernel to project The Trunk:
> http://source.squeak.org/trunk/Kernel-eem.474.mcz
>
> ==================== Summary ====================
>
> Name: Kernel-eem.474
> Author: eem
> Time: 22 July 2010, 1:42:05.4 pm
> UUID: 292f2cc5-ba81-4d03-a64f-4e7cb878d68f
> Ancestors: Kernel-eem.473
>
> BlockClosure>>#once Travis Griggs' neat idiom for interning values of computations.  Use e.g. as in
> 	myResourceMethod
> 		^[time-consuming computation] once

So if I understand correctly, this allows a block to memoize itself but 
also, unlike most memoization schemes, also allows us to UNmemoize the 
block?

That's a pretty neat trick!

frank



More information about the Squeak-dev mailing list