From: Eric Hodel Date: 2005-12-19T14:58:06+09:00 Subject: Re: :: without a prefix (global?) On Dec 18, 2005, at 9:47 PM, List Recv wrote: > I've found some cases where things don't work correctly unless they're > prefixed with a :: . I'm really confused - isn't :: used to > specify the > module (like Graphics::Circle)? > > What is ::Circle? No module?! The constant Circle at toplevel. $ irb irb(main):001:0> A = 1 => 1 irb(main):002:0> module M irb(main):003:1> A = 2 irb(main):004:1> puts A irb(main):005:1> puts ::A irb(main):006:1> end 2 1 => nil -- Eric Hodel - drbrain@segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com