Re: Future Objective-C changes
Re: Future Objective-C changes
- Subject: Re: Future Objective-C changes
- From: David Cittadini <email@hidden>
- Date: Fri, 16 May 2003 16:58:00 +1000
To better support type checking without having to make up new method
names all the time. Even though Objective-C/C++ is a wonderful dynamic
type language it also supports type checking. I would have thought it
would make sense that if it is going to provide some ability to check
types it might as well do it well. The system checks for a clash of
method names, why can't that check be extended (if required) to the
parameter types?
David.
On Friday, May 16, 2003, at 04:40 PM, James McCartney wrote:
If you are going to ask for a new feature, why ask for overloading?
Overloading is multiple argument dispatch's poor cousin.
On Thursday, May 15, 2003, at 11:16 PM, David Cittadini wrote:
With regards to method overloading, I thought it may be useful to be
able to say:
-(int)doSomethingWithFoo:(Foo*)y;
-(int)doSomethingWithFoo:(int)y;
With method overloading the compiler could resolve most of the
parameter type issues without me having to create different method
names just because the parameter type is different.
--
--- james mccartney
--
--- james mccartney email@hidden
<http://www.audiosynth.com>
SuperCollider - a real time audio synthesis programming language for
MacOS X.
_______________________________________________
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.