[MacRuby] #1190: macirb try to do something to strings it tries to print using #to_s
#1190: macirb try to do something to strings it tries to print using #to_s ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- During a macirb session: ± irb irb(main):001:0> class NSURL irb(main):002:1> alias_method :to_s, :absoluteString irb(main):003:0> end => NSURL irb(main):004:0> NSURL.URLWithString( 'macruby.org' ) RuntimeError: can't modify frozen/immutable string irb(main):005:0> test = NSURL.URLWithString( 'macruby.org' ) RuntimeError: can't modify frozen/immutable string irb(main):006:0> test.to_s => "macruby.org" irb(main):007:0> macirb seems to be trying to do something to strings it get's from calling #to_s -- Ticket URL: <http://www.macruby.org/trac/ticket/1190> MacRuby <http://macruby.org/>
#1190: macirb try to do something to strings it tries to print using #to_s ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed Comment: Thanks, Mark! This issue fixed with https://github.com/MacRuby/MacRuby/commit/45c20e0c5690cb46edc94b985deb7605aa... -- Ticket URL: <http://www.macruby.org/trac/ticket/1190#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby