From: Mauricio Fernandez Date: 2006-07-05T19:31:54+09:00 Subject: Re: About 1.9 #__method__ feature. On Wed, Jul 05, 2006 at 12:35:29AM +0900, Logan Capaldo wrote: > >>>I've somtimes wanted a way to get at the binding of the caller but > >>>Binding.of_caller is just too much of a hack and I can't bring myself to > >>>use it. But this would be a very elegant solution. > >> > >>I'd prefer having the functionality built-in as well. It might > >>happen in the next few years from what I understand. > > > >any idea of the limitations of Binding.of_caller? > > > Well you can't use a trace function when you are using binding of > caller, it has to be the last bit of code in a method that uses it, > and it uses continuations (which are slow). I once wrote another Binding.of_caller that didn't use continuations and it was much faster. But the interface was ugly. -- Mauricio Fernandez - http://eigenclass.org - singular Ruby