Hi Patrick,

On Sat, 2005-04-16 at 10:29 -0500, Patrick Hartling wrote:
> I am curious about which namespace is recommended for software using
> OpenSG.  I see that OSG is a preprocessor symbol that maps to osg, and
> it has been suggested to me that code should be using OSG:: in case the
> osg:: namespace should be renamed in the future.  As far as I have seen,
> the documentation doesn't touch on this topic, and all the tutorial code
> I have seen uses USING_NAMESPACE_OSG.  So, I guess the question becomes,
> should code be using OSG::, osg::, or USING_NAMESPACE_OSG?

USING_NAMESPACE_OSG is just a convenience for 'namespace OSG {} using
namespace OSG;', so you're free to use it if you want, but you don't
have to.

In general I'd prefer using OSG:: instead of osg::, especially for
extensions, for the reasons you cited.

        Dirk

-- 
-- Dirk Reiners               OpenSG Forum             [EMAIL PROTECTED] 
-- The OpenSG Open Source Scenegraph:            http://www.opensg.org
-- Join the list at    http://lists.sf.net/lists/listinfo/opensg-users



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to