Hi there,

Wouldn't a better solution to the race conditions that David Koes is
experiencing with global state be to remove the global state? For the
cases he mentioned, e.g. the OBAromTyper, the global state relating to
a single molecule can easily be moved to a OBAromTyperPrivate class
instantiated by a TypeThisMolecule() function in the global class.

This is an API breakage, but only because these internal
implementation functions were exposed. I think the time might be ripe
for a couple of API cleanups, not for the sake of it, but where they
limit or affect the toolkit's usage.

Regards,
- Noel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to