Re: default argument and shared library
On Aug 4, 7:39 pm, Sarvesh Singh <sarvesh.si...@gmail.com> wrote:
On Aug 4, 12:53 pm, James Kanze <james.ka...@gmail.com> wrote:
Can you please be more elaborate on namespace versioning
giving some examples or some link?
I've forgotten where I got the idea from---Nathan Myers, I
think. But the principle is simple: everything in the interface
is in a namespace, something like:
namespace MyNameWithVersion {
// ...
}
namespace MyName = MyNameWithVersion ;
You then define MyNameWithVersion to something like
MyName_2009v01.
Client code, of course, just uses namespace MyName. If it
attempts to link with the wrong version (a different version
than the one with which it was compiled), the link fails. It's
also possible to put several versions in a library or a dynamic
object, with each sub-module picking up the version it needs
(supposing that there is no data defined in the library which
needs to be shared between the sub-modules).
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34