News for hackers. Stuff that matters.
Re:Cocoa's NSMutableArray changes implementation based on th... by rchowe on Wednesday April 06, 2011 @08:37PM (#2417693)
What I'm saying is that you can't do something like this in C++-derived OO languages

    class Test
    {
        Test( int count ) {
            if ( count > 5000 ) return new Implementation();
            return new OtherImplementation();
        }
    }
you'd have to use a class method, whereas you can do that with the standard alloc/init in Objective-C.

There are no comments on this comment yet.