Re: New C++ warning about comparing this==NULL
Re: New C++ warning about comparing this==NULL
- Subject: Re: New C++ warning about comparing this==NULL
- From: Greg Weston <email@hidden>
- Date: Thu, 03 Dec 2015 06:37:12 -0500
> In many languages I’d agree with you. But C++ has a very explicit design principle of not adding extra overhead unless you ask for it. If you want the more powerful (but slower) behavior of virtual methods (inheritance, etc.) you have to explicitly say “virtual”; otherwise a method call is implemented just like a regular C function call.
I think that final sentence might be the crux of the philosophical disconnect. Several times in this thread you've made reference to non-guaranteed implementation as if it were canonical. You seem to have promoted "everybody does it this way as far as I know" to "this is how it is supposed to be done."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden