This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc question about the embedded type definitions
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Serge Fukanchik <fuxx at mail dot ru>
- Cc: Wei ZHANG <wei dot zhang-amk at st dot com>, GCC Help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 03 Dec 2004 11:37:44 +0000
- Subject: Re: gcc question about the embedded type definitions
- Organization: Codesourcery LLC
- References: <41B00D06.1050309@st.com> <41B02FC9.3090404@codesourcery.com> <41B04E7D.6010804@mail.ru>
Serge Fukanchik wrote:
Nathan Sidwell wrote:
in C it is visible, in C++ it is not.
?! In C++ all members of `struct' are public by default
and hence fully accessible. You have to explicitly say `private:'.
you have to qualify their names -- they are not visible in
the global namespace. The question was about their visibility
not their accessibility.
nathan
--
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk