Hi Erik!
NSArray, when instanciated, becomes the equivalent of a ruby array, see for yourself with macirb:
>> a = NSArray.alloc.init
=> []
>> a.class
=> Array
However, you are right, it might need to become frozen, because otherwise, this happens:
>> a << "MacRuby"
2010-02-15 11:57:08.766 macruby[98594:903] -[__NSArray0 addObject:]: unrecognized selector sent to instance 0x20022e820
uncaught Objective-C/C++ exception...
2010-02-15 11:57:08.795 macruby[98594:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArray0 addObject:]: unrecognized selector sent to instance 0x20022e820'
And this is not really what we want :-)
Laurent, what were your plans about that? Should we modify NSArray.m and use an NSMutableArray, or should we freeze NSArray instances?