From: Florian Gross Date: 2004-09-29T01:19:24+09:00 Subject: Re: Best name for "this method" ? trans. (T. Onoma) wrote: > Well, that's my question. Does it just retrieve a reference or does it have to > create the binding? If it's just grabbing a reference to an already existing > binding, that's fine, but then I don't see why using set_trace_function > should slow a program down as much as it does. So I'm guessing it has to > create a binding. Although ruby_frame->prev suggests it already exists. From my limited knowledge of the internals it would only have to tweak a BLOCK and wrap it into a Binding object. That's still not costless of course, but you only have to pay that performance cost when you're actually using Binding.of_caller which is okay IMHO. Regards, Florian Gross