Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ruby -w and '(...) interpreted as grouped expression'

32 views
Skip to first unread message

Minkoo Seo

unread,
Mar 11, 2006, 3:16:35 AM3/11/06
to
Hi all.

I've encountered enigmatic error message while learning rdoc. This is
the simple program which tests RDoc:

#!/usr/local/bin/ruby -w

# == Synopsis
# Test synopsis

require "optparse"
require "rdoc/usage"

opts = OptionParser.new
opts.on("-h", "--help") { RDoc::usage }
opts.parse(ARGV) rescue RDoc::usage('usage')

puts "hello"


When I run above program like './test.rb', ruby says
"/usr/local/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:46: warning: (...)
interpreted as grouped expression"

Why is this warning raised? I have no idea what grouped expression is.

Sincerely,
Minkoo Seo

Yukihiro Matsumoto

unread,
Mar 11, 2006, 3:23:21 AM3/11/06
to
Hi,

In message "Re: ruby -w and '(...) interpreted as grouped expression'"


on Sat, 11 Mar 2006 17:18:47 +0900, "Minkoo Seo" <minko...@gmail.com> writes:

|When I run above program like './test.rb', ruby says
|"/usr/local/lib/ruby/1.8/rdoc/ri/ri_formatter.rb:46: warning: (...)
|interpreted as grouped expression"
|
|Why is this warning raised? I have no idea what grouped expression is.

It's caused by a space before argument parenthesis. I just removed it
from the source code. Thank you.

matz.


0 new messages