[MacRuby] #1141: NSArray.new.class should be "NSArray"

MacRuby ruby-noreply at macosforge.org
Sun Jan 30 22:16:31 PST 2011


#1141: NSArray.new.class should be "NSArray"
----------------------------------------+-----------------------------------
 Reporter:  vincent.isambart@…          |       Owner:  lsansonetti@…        
     Type:  defect                      |      Status:  new                  
 Priority:  critical                    |   Milestone:  MacRuby 1.0          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------
 Even though NSArray's behavior is different from Array, Array.new.class,
 NSArray.new.class and NSMutableArray.new.class all return "Array".

 The user should be able to easily differentiate between Ruby arrays and
 Cocoa arrays so NSArray instances should not pretend to be Array
 instances.

 We should also consider doing it for NSDictionary and NSString.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1141>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list