• 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: lbland <email@hidden>
  • Date: Fri, 16 May 2003 13:32:19 -0400

On Friday, May 16, 2003, at 12:47 PM, David Burnett wrote:

Your example

-(int)doSomethingWithFoo:(Foo*)y;
-(int)doSomethingWithFoo:(int)y;

I'd have called the second function

-(int)doSomethingWithInt:(int)y;

This is called "manual name mangling". It is something C++ does as a feature behind the scenes in part as a way to get around old linker specifications. Normally, C++ guys think mangling the type into the method name is a step backwards. I, however, after reading millions of confusing C++ code lines, think the Obj-C naming style is far superior because it is explicit and readable.

Lance Bland
mailto:email@hidden
VVI
888-VVI-PLOT
http://www.vvi.com
_______________________________________________
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.

References: 
 >Re: Future Objective-C changes (From: David Burnett <email@hidden>)

  • Prev by Date: NSImage cell tanking
  • Next by Date: NSString <--> MacRoman Pascal String
  • Previous by thread: Re: Future Objective-C changes
  • Next by thread: Fwd: Future Objective-C changes
  • Index(es):
    • Date
    • Thread