• 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 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.

  • Follow-Ups:
    • Re: Future Objective-C changes
      • From: David P Henderson <email@hidden>
References: 
 >Re: Future Objective-C changes (From: James McCartney <email@hidden>)

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