🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #640

forward class declarations

#640
From: Arthur Sombrito
Date: Thu, 05 Nov 1992 09:11
27 lines
1234 bytes


Hi,

I'd like to ask the ARM specifications regarding forward class
declarations.  At what scope would the class name be entered?  
The current scope or the first non-class enclosing scope?  
For example:

  class A {
    class B {
      struct C;              // is it ::C or A::B::C ?
      struct D *dP;          // likewise is it ::D or A::B::D ?
      void f(struct E *eP);  // is it ::E or is it entered in
                             // the local scope of f() ?
    };
  };
  C *cP;                     // so is C visible?
  E *eP;                     // and so is E?

The USL library assumes that forward class declarations are 
entered in the first non-class enclosing scope. As far as I 
could tell in ARM, it should be entered in the current scope.
Which should it be?

Thanks for any replies
Technical Details
Message-ID: <1992Nov5.091104.11104@nuscc.nus.sg>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!nuscc!arthur

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!jvnc.net!nuscc!arthur
From: arthur@solomon.technet.sg (Arthur Sombrito)
Subject: forward class declarations
Message-ID: <1992Nov5.091104.11104@nuscc.nus.sg>
Sender: usenet@nuscc.nus.sg
Organization: National University of Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Thu, 5 Nov 1992 09:11:04 GMT
Lines: 27