[MacRuby] #1190: macirb try to do something to strings it tries to print using #to_s
MacRuby
ruby-noreply at macosforge.org
Fri Mar 11 09:18:51 PST 2011
#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/>
More information about the macruby-tickets
mailing list