Project

General

Profile

Actions

Bug #3997

closed

Warning about using Fixnums as Symbols does not honor $VERBOSE

Added by agrimm (Andrew Grimm) over 13 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.4.0]
[ruby-core:32936]

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

Actions #1

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

Also available in: Atom PDF

Like0
Like0