Re: C++ name collisions between plugins
Re: C++ name collisions between plugins
- Subject: Re: C++ name collisions between plugins
- From: Paul Miller <email@hidden>
- Date: Thu, 15 Aug 2013 09:37:19 -0500
- Organization: FXTECH
On 8/15/2013 9:29 AM, Ben Syverson wrote:
C++ or Objective C? The Obj C runtime doesn't (can't) distinguish between two classes with the same name, so it's problematic for plugins.
All my code is C++. I have a thin Objective C FxPlug wrapper around it
which does has a unique name (I learned that part a long time ago).
Now I just prefix every class with the reverse domain, product and version number, like this:
ComBenSyversonMattebox2Render
It's sort of absurd, but it's the only solution to completely avoid collisions.
Yuck. I don't mind having unique names for the Obj C stuff but I have
way too much C++ code to do that with.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden