home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: 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.091843.12243@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:18:43 GMT
- Lines: 28
-
-
-
-
-
- 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
-