Hello --

In hacking away at an answer to Wejn's question about ranges,
I noticed for the first time that -v seems to imply -w:

The first case where I noticed it:

  candle:~$ ruby/ruby -e 'p ((0..4).type)'
  Range
  candle:~$ ruby/ruby -ve 'p ((0..4).type)'
  ruby 1.7.2 (2002-05-11) [i686-linux]
  -e:1: warning: p (...) interpreted as grouped expression
  Range

Never mind for the moment that I'd rather not be warned about
something being grouped when I've put parens around it... :-) I'm just
wondering why -v produces the warnings at all.

A 1.6.7 example:

  candle:~$ ruby -e '3'
  candle:~$ ruby -ve '3'
  ruby 1.6.7 (2002-03-01) [i686-linux]
  -e:1: warning: useless use of a literal in void context


David

-- 
David Alan Black
home: dblack / candle.superlink.net
work: blackdav / shu.edu
Web:  http://pirate.shu.edu/~blackdav