From: "URABE Shyouhei aka.mput" Date: 2005-01-06T02:35:40+09:00 Subject: [ruby-dev:25413] class Foo p self; end mput です。 ruby -e'module Hoge p self; end' は通るのに ruby -e'class Hoge p self; end' は通らないというのが納得いきません。 両方とも通るようにするか、両方とも通らないようにすべきではないでしょうか。 とりあえず両方とも通るようにするパッチを添付します。 Index: parse.y =================================================================== RCS file: /src/ruby/parse.y,v retrieving revision 1.366 diff -u -p -0 -w -r1.366 parse.y --- parse.y 5 Jan 2005 08:00:48 -0000 1.366 +++ parse.y 5 Jan 2005 17:34:06 -0000 @@ -3745 +3745 @@ backref : tNTH_REF -superclass : term +superclass : none /*term*/ -- URABE, Shyouhei aka. mput root@mput.dip.jp