March 22, 2009
8:57 p.m.
Rob Rothwell writes:
Well, I don't have any "tough, real world examples," but the example Bert gave me:
multiply := Array new: 4. 1 to: 4 do: [:i | multiply at: i put: [:x | x * i]. ].
(multiply at: 3) value: 5.
Resulted in the appropriate answer 15!!!
I tried this on Linux, and it works. Poking around a bit more brought up the emergency evaluator because BlockClosure doesn't understand #isValid:. Bryce P.S I'm not going to have much time in April as we have family staying and our second son is due.