Hello --

On Fri, 14 Dec 2001, Issac Trotts wrote:

> Is there a function that takes a string and evaluates
> it in the context of the calling function, in much
> the same way as module_eval evaluates a string in
> the context of the module from which it was called?

Pending something slicker from a binding guru:

You can pass bindings around:

  def thing(s,b)
    eval s, b
  end

  a = 123
  p thing(a, binding)   #  => 123



David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav