From: matz@... (Yukihiro Matsumoto) Date: 1999-03-03T12:06:25+09:00 Subject: [ruby-dev:5915] Re: [REQ] 中置の def まつもと ゆきひろです In message "[ruby-dev:5910] Re: [REQ] 中置の def" on 99/03/03, moochan writes: |moochan です. |単純に1行にしたのでは駄目ですね. | |$ cat test.rb |#!/usr/local/bin/ruby | | def bar print "1\n" end |./test.rb:4: parse error | def bar print "1\n" end | ^ |def行の中に適当に ';' で区切れば通るようですね... | | def bar; print "1\n"; end |# で,セミコロンが我慢できますか?? セミコロンを我慢しなくても,これを def bar() print "1\n" end とすれば良いと思うんですが. # で,かっこを我慢できますか? ^^;;; まつもと ゆきひろ /:|)