On 15-Nov-05, at 11:57 PM, Ara.T.Howard wrote:
>
> but why do you need to distinguish?
>
> [snip]
>
> the 'const_missing' hook will continue to get call only so long as  
> it remain
> undefined - if your handler merely loads a file but does not  
> actually define
> any const then of course it will continue to fire.  what, exactly,  
> does your
> handler do?

The loaded file is expected to define the constant; We assume b.rb  
contains class or module B (or defines it in any other way). If the  
constant isn't defined by the loaded file then a NameError is raised  
as if normal.