• 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: Martin Häcker <email@hidden>
  • Date: Mon, 19 May 2003 21:32:48 +0200

At 13:19 Uhr -0400 19.05.2003, lbland wrote:
On Monday, May 19, 2003, at 12:30 PM, Martin Hdcker wrote:

As far as I know it's dispatching a method call on the type of both the argument and the receiver, thus effectively doing the (almost ...
...snip...
- do:(NSString *)aString;

Well... am I right on this? If so, what's the difference from the effect created from name mangling?

your question can be interpreted in different ways, but here is one answer:
...snip...
that is because obj-c does not mangle the name with type information and any object cast (id <-> NSString * for example) is just a simple pointer cast, less prototype resolution at compile time (no run time resolution) which is an add on feature to obj-c (stepstone did not do that in the original version).

Well, yes I get that. But what's the difference to this thing called double dispatch that comes up from times to times?

cu Martin
--
dont.wanna.tell
[ot]coder - hehe
_______________________________________________
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: Marco Scheurer <email@hidden>
References: 
 >Re: Future Objective-C changes (From: lbland <email@hidden>)

  • Prev by Date: Re: Generating barcode NSImages?
  • Next by Date: Re: NSOutlineView not respecting it's visible rect
  • Previous by thread: Re: Future Objective-C changes
  • Next by thread: Re: Future Objective-C changes
  • Index(es):
    • Date
    • Thread