On Wed, 24 May 2006, Joel VanderWerf wrote: > ara.t.howard / noaa.gov wrote: > ... >> yes. #defined would be really nice for both classes and modules - >> called via >> rb_define_xxx. > > 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? harp:~ > cat a.rb class Object def const_added *a, &b p a, b end end load 'b.rb', anon = true harp:~ > cat b.rb class C; end harp:~ > ruby a.rb i also tried in Module and Class - no joy. thoughts? -a -- be kind whenever possible... it is always possible. - h.h. the 14th dali lama