On Wed, 2002-07-10 at 14:32, David Alan Black wrote:
>   class OuterClass
>     def const_added(name,value)  # or something
>       ...
>     end
>     NEW_CONSTANT = 1    # const_added called here
>   end
> 
> If so, how would this interact with inner classes?

i can almost see it:

  class OuterClass
    def OuterClass.const_added(id)
      # how to use id 
      # to add an instance variable
      # to this identified object
      # of type OuterClass?
     ...
    end
    class InnerClass
      ...
    end
    def initialize
      ic = InnerClass.new        # this will triger const_added ?
    end
  end

yea, i'm a bit confused too.

~transami