Re: Future Objective-C changes
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.