[MacRuby] #1057: Redefine of ! is ignored

MacRuby ruby-noreply at macosforge.org
Sat Dec 18 03:36:23 PST 2010


#1057: Redefine of ! is ignored
--------------------------------+-------------------------------------------
 Reporter:  mjkaelbling@…       |       Owner:  lsansonetti@…         
     Type:  defect              |      Status:  new                   
 Priority:  major               |   Milestone:  MacRuby 0.8           
Component:  MacRuby             |    Keywords:  ! def redefine ignored
--------------------------------+-------------------------------------------
 {{{
 class String ; def ! ; 'bang!' end end
 !"x"      # => warning: string literal in condition
 class Time   ; def ! ; 'bang!' end end
 !Time.now # => false
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1057>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list