OSLib Namespace for C++
Ainsley Pereira
marble at executor.karoo.co.uk
Tue May 30 19:48:33 BST 2000
In message <NIxKKBA3fqM5Ew8k at mk-net.demon.co.uk>
Tony van der Hoff <OSLib at mk-net.demon.co.uk> wrote:
> Stroustrup suggests appending the headers with
> using namespace OSLib;
> thus making it global, but that seems to me to defeat the objective of a
> namespace.
Well, whilst I don't think it is a good idea to put that in the headers
(perhaps do like the standard library and have headers which do and
headers which don't), there is a use. If you do get a clash, you have
the ability to specify which one you want by explicitly putting
OSLib::name.
~A.
--
-----------------------------------------------------------
/ Ainsley Pereira / aka Marble on Snowplains /
/ / telnet://snowplains.org:3456 /
------------------------------------------------------------
More information about the oslib-user
mailing list