This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
existing functionality questions
- From: Michael Tegtmeyer <tegtmeye at mail dot eecis dot udel dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 6 Sep 2005 15:04:28 -0400 (EDT)
- Subject: existing functionality questions
Hello,
I am trying to find out what the existing method of determining whether
or not something (function for example) can access a field of a structure.
For example:
class A {
public:
int pub_var;
void foo(/*implicit this* */) {...}
private:
int private_var;
};
void bar(A a) {...}
In this example, foo can obviously access private_var but bar cannot. When
examining function arguments, what is the accepted practice for finding
out what members the function may access in the structure.
Thanks in advance,
Mike Tegtmeyer