On Thu, 21 Sep 2006, Chris Roos wrote:

>> non-prefixed constants follow the normal scoping rules:
>> 
> Thanks for the clarification.  Purely out of interest, do you find
> this behaviour a bit odd (or am I missing obvious reasons as to why it
> is implemented this way)?
>
> Chris

so that


   class C
     a = Array.new  # up scope
   end


and

   class C
     a = const_get('Array').new
   end

behave

i agree it can be confusing, but the alternative, requiring all constants to
be fully scoped, would be an enormous pain in the ass.

cheers.

-a
-- 
in order to be effective truth must penetrate like an arrow - and that is
likely to hurt. -- wei wu wei