From: Malte Milatz Date: 2006-02-22T02:04:04+09:00 Subject: Re: Blocks / Closures Picklegnome wrote: > Can blocks be used for non-iterative functions? For example, Hash.new can be given a block in which you provide a default value. Assuming that there is a class called Something: h = Hash.new { Something.new } a, b, c = h[0], h[0], h[1] a, b and c will contain three non-equal instances of Something, because every time h#[] is called, the block will be called. Any chance that we see your real name? Malte