[gmpi] Re: Linux C++ question

* For maximum portability, GMPI plugins should not declare static objects
 (C++).  Some platforms are known to have problems unloading DLLs with
 static objects.

Seems way too strict to me.

Static objects, aka "singletons", are a very common C++ idiom. My guess would be if the compiler barfed it might be due to a mixture of C-isms such as "atexit" with C++ code.

IMO GMP should not legislate against a language feature. We've got the C ABI to keep the interface language neutral. Everything else should be fair game.


---------------------------------------------------------------------- Generalized Music Plugin Interface (GMPI) public discussion list Participation in this list is contingent upon your abiding by the following rules: Please stay on topic. You are responsible for your own words. Please respect your fellow subscribers. Please do not redistribute anyone else's words without their permission.

Archive: http://www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: