[MacRuby] #1269: String() should coerce NSStrings
#1269: String() should coerce NSStrings ---------------------------------------+------------------------------------ Reporter: joshua.ballanco@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ---------------------------------------+------------------------------------ This is kinda unexpected: {{{ class String def foo "bar" end end s = NSString.alloc.initWithString("Test") String(s).foo # => NoMethodError: undefined method `foo' for "Test":String }}} Using String.new() get's you the expected result, but I would think that String() should as well... -- Ticket URL: <http://www.macruby.org/trac/ticket/1269> MacRuby <http://macruby.org/>
#1269: String() should coerce NSStrings ---------------------------------------+------------------------------------ Reporter: joshua.ballanco@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | ---------------------------------------+------------------------------------ Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.11 Comment: Agreed. Should be fixed by https://github.com/MacRuby/MacRuby/commit/f03ba947afa2a665f2b71e59ef007f88c7.... Also done for Array(). -- Ticket URL: <http://www.macruby.org/trac/ticket/1269#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby