From -4859599160323512629
X-Google-Thread: f78e5,f6130266038a8c4d
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: francis@robinton.demon.co.uk (Francis Glassborow)
Newsgroups: comp.std.c++
Subject: Re: Private Methodes declared outside of the class
Date: Wed, 18 Aug 2004 17:17:28 GMT
Organization: Southfield Microcomputer SS
Lines: 23
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <yQATa3WOTzIBFwpa@robinton.demon.co.uk>
References: <2oblfaF8nds3U1@uni-berlin.de>
 <_p6Uc.1281$g%5.16328@news2.e.nsc.no>
 <41211964$0$73936$14726298@news.sunsite.dk> <2oco5cF9dtbhU1@uni-berlin.de>
NNTP-Posting-Host: news.news.demon.net
Mime-Version: 1.0
Content-Type: text/plain;charset=us-ascii;format=flowed
X-Trace: news.demon.co.uk 1092849453 24100 158.152.254.254 (18 Aug 2004 17:17:33 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Wed, 18 Aug 2004 17:17:33 +0000 (UTC)
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-User-Agent: Turnpike/6.02-U (<TilyaeicE$WmMOP9F8P4$y3lmP>)
X-Spam-Checker-Version: SpamAssassin 2.60-mulga_r1 (1.212-2003-09-23-exp) on 
	mulga.cs.mu.OZ.AU
X-Spam-Status: No, hits=-3.5 required=5.2 tests=AWL,BAYES_00 autolearn=ham 
	version=2.60-mulga_r1
X-Received: (from fjh@localhost)
	by mulga.cs.mu.OZ.AU (8.12.10+Sun/8.12.9/Submit) id i7IHHSs3025688;
	Thu, 19 Aug 2004 03:17:28 +1000 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Spam-Level: 
X-Delivered-To: std-c++@ucar.edu
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Newsgroups: comp.std.c++
Xref: g2news1.google.com comp.std.c++:1809

In article <2oco5cF9dtbhU1@uni-berlin.de>, Ben Strasser 
<ben04_01@freenet.de> writes
>And why is it not needed? Because there's a workaround which allows you 
>to do a simple thing the hard way?
>
>PImpl adds extra indirections, which are slower than when using a C 
>interface (compare this->imp->data to handle->data) but worse is the 
>extra indirection in the source code which makes you have to actually 
>think that imp->imp_foo() is actually calling a member of the same class.

Which, AFAICS, any reasonable quality compiler can optimise away.

-- 
Francis Glassborow      ACCU
Author of 'You Can Do It!' see http://www.spellen.org/youcandoit
For project ideas and contributions: http://www.spellen.org/youcandoit/projects

---
[ 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.jamesd.demon.co.uk/csc/faq.html                       ]



