Yukihiro Matsumoto
2/8/2006 11:01:00 PM
Hi,
In message "Re: how to do instance_eval with arguments"
on Thu, 9 Feb 2006 07:33:53 +0900, Jim Weirich <jim@weirichhouse.org> writes:
|
|I'm prototyping a DSL and came across a situtation where I have a lambda
|that I would like to give to instance_eval, but the lambda takes
|arguments. Instance_eval will not supply any arguments when evaluating
|the lambda and I don't see a straightforward way around this.
|
|Any suggestions?
CVS HEAD (1.9) has instance_exec method that works exactly what you
want.
matz.