ara.t.howard / noaa.gov wrote: > On Wed, 24 May 2006, Joel VanderWerf wrote: ... >> This is sort of a tangent, but what about a const_added hook? That >> wouldn't fire when Module.new is called, though. And it would mean >> having to ignore non-class/module constants. > > hmmm. i like this - are you sure that's the hook name? Sorry ... it was just a wild suggestion. There's nothing like that now, AFAIK. It's too bad set_trace_func slows down the interpreter, but you could use that to catch "class" events: "start a class or module definition" according to the docs. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407