From: "Mark J. Reed" Date: 2003-10-02T23:06:36+09:00 Subject: Re: Absolute class name? MJR = me NN = Nobu Nokada MJR> How can I force a reference to the top-level Foo no matter what MJR> namespace I'm in? class ::Foo is a syntax error. NN> It works in 1.8. I beg to differ; I'm running 1.8.0 final (not preview) release, unpatched, and I get a syntax error: irb(main):001:0> RUBY_VERSION => "1.8.0" irb(main):002:0> class ::Foo SyntaxError: compile error (irb):2: syntax error class ::Foo ^ from (irb):2 irb(main):003:0> NN> If you use 1.6 still, NN> class X NN> ::Object.class_eval do NN> class Foo NN> end NN> end NN> end That works. Thanks! -Mark