On Fri, Feb 20, 2009 at 12:19 PM, Robert Klemme
<shortcutter / googlemail.com> wrote:
> I would prefer an explicit block parameter though - or a method for that
> matter.  It's more encapsulated, i.e. you have a clear interface and do not
> rely on the rather unobvious closure.
>

Certainly, if that is an option for the OP.  I only suggested the
closure based solution as an alternative to eval - both solutions are
inferior to a parameterized approach.

Cheers,
lasitha.