Actions
Bug #3997
closedWarning about using Fixnums as Symbols does not honor $VERBOSE
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.4.0]
Description
=begin
If you use a Fixnum as a symbol, you get a warning regardless of $VERBOSE
ruby-1.8.7-p302 > puts $VERBOSE
false
=> nil
ruby-1.8.7-p302 > "string".send(:reverse.to_i)
(irb):2: warning: do not use Fixnums as Symbols
=> "gnirts"
=end
Updated by nobu (Nobuyoshi Nakada) over 13 years ago
- Status changed from Open to Rejected
=begin
It's warned always unless $VERBOSE is nil.
=end
Actions
Like0
Like0