Stewart Smith wrote: > On Wed, Jan 27, 2010 at 11:16:30PM +1300, Tim Penhey wrote: >> As part of the refactoring I'm doing on drizzled/error.cc, I'm considering >> doing the primary initialization of the enum -> error string at static >> initialization time. >> >> Are there any concerns about this? > > When loading in a shared library, constructors of global static objects > won't be called... so that's a concern.
That's actually only when one dlopen()'s the lib... but yeah. My main concern is valgrind (even false positives in valgrind are annoying and create more noise..) Also - if there's a way to make it so that the client progs don't have to link that chunk of code from the server, that would be swell... but then also something I'll get over. Monty _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

