• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Future Objective-C changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Future Objective-C changes
      • From: lbland <email@hidden>
References: 
 >Re: Future Objective-C changes (From: David Cittadini <email@hidden>)

  • Prev by Date: Re: Future Objective-C changes
  • Next by Date: getting movies into pasteboards
  • Previous by thread: Re: Future Objective-C changes
  • Next by thread: Re: Future Objective-C changes
  • Index(es):
    • Date
    • Thread