[squeak-dev] Re: The Trunk: Kernel-eem.474.mcz
Andreas Raab
andreas.raab at gmx.de
Fri Jul 23 00:14:39 UTC 2010
On 7/22/2010 8:42 PM, 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
>
What am I missing?
Object compile: 'onceTest
"Just once please"
^[Transcript cr; show: ''only once''] once'.
#(1 2 3) collect: #onceTest.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|