Binding of caller in Ruby 1.9

K

Ken Bloom

Does anybody know of a way to get access in Ruby 1.9 to the binding of
the caller of the function that's currently executing?

--Ken
 
P

Paul Brannan

Does anybody know of a way to get access in Ruby 1.9 to the binding of
the caller of the function that's currently executing?

Pass it in explicitly:

foo(arg1, arg2, binding)

Being able to get the binding of the caller prevents desirable
optimizations.

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top