I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)

Talk:Copy a string

From Rosetta Code

Objective-C Example[edit]

Well I don't know Objective-C, but looking at the examples isn't there an error on this line:

NSString *newMutable = [original mutableCopy];

shoudn't it be this below ?

NSMutableString *newMutable = [original mutableCopy];
Well, it's not wrong -- since NSMutableString is a subclass of NSString -- it just makes it less useful. --164.67.199.150 05:34, 18 November 2009 (UTC)