[MacRuby] #913: Aliases of setter methods created by attr_writer produce erroneous results
#913: Aliases of setter methods created by attr_writer produce erroneous results ---------------------------------+------------------------------------------ Reporter: mred@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Aliases of setter methods created by attr_writer do not write their values to the original attribute {{{ $ cat test.rb puts MACRUBY_REVISION class A attr_writer :x alias :y= :x= alias :setY :setX alias :foo :setX end obj = A.new obj.y = 1 puts obj.inspect obj.setY 2 puts obj.inspect obj.foo 3 puts obj.inspect $ macruby test.rb svn revision 4533 from http://svn.macosforge.org/repository/ruby/MacRuby/trunk #<A:0x2000c5a00 @x=1> #<A:0x2000c5a00 @x=1 @y=2> #<A:0x2000c5a00 @x=1 @y=2 @=3> }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/913> MacRuby <http://macruby.org/>
#913: Aliases of setter methods created by attr_writer produce erroneous results ---------------------------------+------------------------------------------ Reporter: mred@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby Later Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Changes (by lsansonetti@…): * milestone: => MacRuby Later Comment: For Later. -- Ticket URL: <http://www.macruby.org/trac/ticket/913#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby