From: nobu.nokada@... Date: 2002-07-31T06:01:38+09:00 Subject: Re: Procs and scope (function pointers) Hi, At Wed, 31 Jul 2002 01:31:43 +0900, Jim Freeze wrote: > > You could try > > > > def compute(x) > > instance_eval(&func) > instance_eval(&func(x)) # would I pass the argument like this? > > end No, it means calling func with an argument and its result would be passed to instance_eval as a block. It might not be what you expect. There was proposals to add arguments to instance_eval or add a new method instance_yield in ruby-dev and ruby-talk. -- Nobu Nakada