[MacRuby] #244: String.name should return "String" and not "NSMutableString"
#244: String.name should return "String" and not "NSMutableString" -------------------------------+-------------------------------------------- Reporter: carllerche@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- macirb
String.name # => "NSMutableString"
I believe that it is a ruby expectation that core classes will have the same name on any ruby implementation. Extlib and other libraries rely on this fact. -- Ticket URL: <http://www.macruby.org/trac/ticket/244> MacRuby <http://macruby.org/>
#244: String.name should return "String" and not "NSMutableString" -------------------------------+-------------------------------------------- Reporter: carllerche@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Comment(by mattaimonetti@…): {{{
"test".is_a?(String) => true "test".instance_of?(String) => true }}}
-- Ticket URL: <http://www.macruby.org/trac/ticket/244#comment:1> MacRuby <http://macruby.org/>
#244: String.name should return "String" and not "NSMutableString" -------------------------------+-------------------------------------------- Reporter: carllerche@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Comment(by lsansonetti@…): #name and #to_s should probably return "String" when the receiver is NSMutableString (same for Array, Hash and Set) for compatibility purposes. However I would prefer to keep #inspect showing the real class name. -- Ticket URL: <http://www.macruby.org/trac/ticket/244#comment:2> MacRuby <http://macruby.org/>
#244: String.name should return "String" and not "NSMutableString" -------------------------------+-------------------------------------------- Reporter: carllerche@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------+-------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.6 Comment: That should be fixed in trunk as of r3858. -- Ticket URL: <http://www.macruby.org/trac/ticket/244#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby