[gmpi] Re: Linux C++ question

> > I think we'll get most portability by avoiding static
objects as much as possible.

>... Symbian does not allow writable static
> data in DLLs. The DLLs don't  have a data segment at all.

So this is not allowed..

static AClass Myclass;

..and even this is not allowed????

static int x;

Does that mean we have to rewrite our singleton again??? (it
uses a static pointer)...

static GMPI_Factory* the_factory;
if (the_factory == NULL) {
    the_factory = new GMPI_Factory();
}


This seems to *really* restrict the use of C++ in GMPI.

no static class's, therefore no singletons, therefore
restrictions on certain categories of class factories..

Is there any other C or C++ feature that relys on atexit()?
that we need to avoid?, I couldn't find any info on this.

Jeff

----------------------------------------------------------------------
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: