Re: Registries

Daniel Wallin <[email protected]>
Newsgroups gmane.comp.lib.boost.langbinding
Message-ID <5.1.0.14.0.20030717020453.03c58330__30840.5583528385$1059273097@student.umu.se>
At 23:13 2003-07-16, David Abrahams wrote:
>Daniel Wallin <[email protected]> writes:
>
> > One thing; the converter-registries aren't really bound to modules
> > though are they?
>
>That's the intention.
>
> > They are really just bound to the shared library.
>
>That's not the intention.  Converter registrations would occur within
>the context of some current module scope, which would stick them into
>a particular...
>
> > So if you have multiple modules in the same shared library you would
> > automatically share registries as well.
>
>Agh, I think there may be a serious problem for registry scoping
>here.  At least on most Unices, all extension modules linked to the
>same langbinding .so are prone to share a single copy of
>registration<T> for any T.

I don't get this. Wouldn't registration<T> reside in the modules shared
library, and thus not be shared? I might be stupid here though, shared
libraries isn't exactly my area of expertise. ;)

---
Daniel Wallin



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.