From: Shyouhei Urabe Date: 2009-11-27T21:47:27+09:00 Subject: [ruby-dev:39798] [Bug #2407] numeric literal without digits Bug #2407: numeric literal without digits http://redmine.ruby-lang.org/issues/show/2407 起票者: Shyouhei Urabe ステータス: Open, 優先度: Low 担当者: Yukihiro Matsumoto, カテゴリ: core ruby -v: ruby 1.9.2dev (2009-11-24 trunk 25898) [x86_64-linux] 以下のような実験をすると、0o_のパターンの時だけなぜか"numeric literal without digits"なる警告が出るようです。 zsh % ruby -e'0123456789' -e:1: Invalid octal digit 0123456789 ^ zsh % zsh % ruby -e'0o123456789' -e:1: Invalid octal digit 0o123456789 ^ zsh % zsh % ruby -e'0_123456789' -e:1: Invalid octal digit 0_123456789 ^ zsh % zsh % ruby -e'0o_123456789' -e:1: numeric literal without digits 0o_123456789 ^ -e:1: syntax error, unexpected tIDENTIFIER, expecting $end ---------------------------------------- http://redmine.ruby-lang.org