Thread View: comp.std.c++
1 messages
1 total messages
Started by Arthur Sombrito
Thu, 05 Nov 1992 09:11
forward class declarations
Author: Arthur Sombrito
Date: Thu, 05 Nov 1992 09:11
Date: Thu, 05 Nov 1992 09:11
27 lines
1234 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads