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

Discussion in 'Ruby' started by Minkoo Seo, Mar 11, 2006.

  1. Minkoo Seo

    Minkoo Seo Guest

    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
    Minkoo Seo, Mar 11, 2006
    #1
    1. Advertising

  2. Hi,

    In message "Re: ruby -w and '(...) interpreted as grouped expression'"
    on Sat, 11 Mar 2006 17:18:47 +0900, "Minkoo Seo" <> 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.
    Yukihiro Matsumoto, Mar 11, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Adams
    Replies:
    1
    Views:
    352
    Jukka K. Korpela
    Mar 19, 2005
  2. Drew
    Replies:
    4
    Views:
    152
  3. Erwin Moller
    Replies:
    9
    Views:
    124
    Clifford Heath
    May 8, 2008
  4. Sai Babu
    Replies:
    13
    Views:
    213
    Rick DeNatale
    Jan 14, 2011
  5. joeyej
    Replies:
    5
    Views:
    89
    Tad McClellan
    Apr 12, 2006
Loading...

Share This Page