>>>>> "Y" == Yukihiro Matsumoto <matz / ruby-lang.org> writes: Y> Unfortunately, it's not. "class M::C" notation is not a syntax sugar Y> for 'module M; class C". It is something like "M::C = Class.new", so Y> that the body of C definition is not nested in the M body. Well, it has a little problem If I read parse.y (cpath), this must work, no ? svg% ruby -e 'class ::C; end' -e:1: syntax error class ::C; end ^ -e:1: syntax error svg% Guy Decoux