Re: Future Objective-C changes
Re: Future Objective-C changes
- Subject: Re: Future Objective-C changes
- From: mathew <email@hidden>
- Date: Sun, 18 May 2003 13:54:51 -0400
On Sunday, May 18, 2003, at 01:27 US/Eastern, Sheehan Olver wrote:
Though what might be useful would be to specify a type for an
NSMutableArray, in order to get a runtime exception when something
gets added by mistake. Of course, this doesn't require language
constructs, simply a new constructor like:
[NSMutableArray arrayOfType:[NSString class]];
Indeed, and if you want to make sure you get your errors at compile
time, you can subclass and extend NSMutableArray to have type-specific
selectors addString, addInteger, etc. Again, no language changes are
required.
mathew
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.