From: Roger Pack Date: 2009-07-20T22:38:46+09:00 Subject: Re: remembered_evals 0.0.4 -- debugging help for eval > I've used this same trick myself several times to be able to debug > eval'd code. A library for it is nice. Let me make a suggestion, tho. > You ought to name the method something other than eval, since your new > implementation (unavoidably) changes the semantics of a > well-established and much used builtin method. How about > debuggable_eval? Some kind of switch to have it fall back to the plain > vanilla eval for production mode might be nice too. Yeah it turned out to be deftly useful at least once for me. Currently when I want to use it for debugging, I'll add this line require 'remembered_evals' or comment it out when I'm *not* debugging. For me that feels explicit enough. Thoughts? =r -- Posted via http://www.ruby-forum.com/.