From 1981998190491041579
X-Google-Thread: f78e5,13848293b54382c8
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,CP1252
Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!news.alt.net!comp-std-cpp-robomod!not-for-mail
From: Alberto Ganesh Barbati <AlbertoBarbati@libero.it>
Newsgroups: comp.std.c++
Subject: Re: Encapsulation of variables
Date: 18 Apr 2006 23:50:02 GMT
Organization: [Infostrada]
Lines: 20
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <4Te1g.87563$PR2.1399736@twister2.libero.it>
References: <1145365947.835536.81010@u72g2000cwu.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
Return-Path: <devnull@stump.algebra.com>
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on ak74.algebra.com
X-Spam-Level: ***
X-Spam-Status: No, score=3.4 required=5.0 tests=HEADER_SPAM,MISSING_HEADERS,
	TO_CC_NONE autolearn=disabled version=3.1.1
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-Original-To: std-c++@mailman.ucar.edu
Delivered-To: std-c++@mailman.ucar.edu
Delivered-To: std-c++@ucar.edu
User-Agent: Mozilla Thunderbird 1.5 (Windows/20051201)
X-Complaints-To: abuse@libero.it
X-Trace: twister2.libero.it 1145403968 151.37.176.239 (Wed, 19 Apr 2006 01:46:08 MET DST)
NNTP-Posting-Date: Wed, 19 Apr 2006 01:46:08 MET DST
X-Scanned: with antispam and antivirus automated system at libero.it
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Xref: g2news1.google.com comp.std.c++:1601

philparsonage@hotmail.com ha scritto:
> 
> Is this really part of the standard? From reading it, I think it is,
> but I can't quite believe what I'm reading! This seems insane!
> 

No, it isn't part of the standard and my copy of gcc 4.0.2 get it right,
by producing the error message "error: �int A::_fred� is private". If
the code you posted compiles as-is (something I really doubt) there's
something very wrong with your configuration. Could you double-check,
please?

Ganesh

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



