Re: Future Objective-C changes
Re: Future Objective-C changes
- Subject: Re: Future Objective-C changes
- From: David Burnett <email@hidden>
- Date: Fri, 16 May 2003 17:47:43 +0100
On Friday, May 16, 2003, at 07:49 am, David Cittadini wrote:
That is good but what if I just want to support a Foo* and an int and
nothing else? At the moment I can only do this with multiple method
names,
which is a bit strange as logically I actually have the same method
(name)
but different parameter types.
Strangley enough I'd say you had to different methods, but with the same
name, after all they do different things, they just presumably have the
end same effect. If they don't have the same effect why have they got
the
same name.
Your example
-(int)doSomethingWithFoo:(Foo*)y;
-(int)doSomethingWithFoo:(int)y;
I'd have called the second function
-(int)doSomethingWithInt:(int)y;
Dave
_______________________________________________
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.