RAD Studio
ContentsIndex
PreviousUpNext
Declaring A namespace

An original namespace declaration should use an identifier that has not been previously used as a global identifier.

    namespace alpha {  /* ALPHA is the identifier of this namespace. */
      /* your program declarations */
      long double LD;
      float f(float y) { return y; }
      }

A namespace identifier must be known in all translation units where you intend to access its elements.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!