Re: HLA macro question?



Randy,

Let's start over. The problem I'm having is that namespaces appear to
be separate compilation units if you look at the standard include files
(e.g., stdout.hhf, math.hhf, etc.). BUT if I try compiling:

namespace X;
static
w : int32;
end X;

separately, it fails. If I try:

program P;
namespace X;
static
w : int32;
end X;
begin P;
end P;

it compiles. How does this work? The include files have namespaces as
separate compilation units but the compiler refuses to compile a
namespace separately? Is there something I'm missing?

---John

.



Relevant Pages

  • Re: HLA macro question?
    ... > be separate compilation units if you look at the standard include files ... > namespace X; ... Randy Hyde ...
    (comp.lang.asm.x86)
  • Re: GCC
    ... That spec says what the names of the standard header ... It's important if you want to the use the namespace feature. ... what use is a compiler that does ...
    (Debian-User)
  • Re: Do you put functions in the global namespace? Other than main()
    ... namespace std or namespaces within namespace std unless otherwise ... A program may add template specializations for any standard ... partial) of a standard library template results in undefined behavior ... Everything was in an identifiable compartment, ...
    (comp.lang.cpp)
  • Re: Getting Started w/ Standard C++ in Microsoft VC++ 6.0?
    ... makes programming for the Windows API *much* easier than using the API ... subsystems and rewrite the "back end" system in standard C++. ... You don't have to write "using namespace std" anywhere. ... application" (in VC6) and the standard library will be available. ...
    (microsoft.public.vc.mfc)
  • Re: Why not add namespace feature into standard C?
    ... features, I can't understand why not add this feature into standard C. ... macro in a namespace safe way. ... And so long as you don't define a function or macro called swap, ...
    (comp.lang.c)