From: matz@... (Yukihiro Matsumoto) Date: 2001-05-11T09:26:17+09:00 Subject: [ruby-talk:14964] Re: load and local variable scope (and constants too) Hi, In message "[ruby-talk:14957] load and local variable scope (and constants too)" on 01/05/11, Phil Tomson writes: |So, am I right in concluding that in regard to file scoping, constants |look more like globals? I suppose this makes sense since if you try to |redefine a constant you'll get a warning which will indicate that perhaps |you have another constant by the same name in a differnt file. Constants are scoped by enclosing class (Object at toplevel). Since Object is the root for all classes, toplevel constants are like globals, I don't recommend you to use them too much. matz.