comp.lang.ada
 help / color / mirror / Atom feed
From: Immanuel Scholz <news@kutzsche.net>
Subject: Re: more to ada paper critic
Date: Tue, 18 Jun 2002 15:42:42 +0200
Date: 2002-06-18T15:42:42+02:00	[thread overview]
Message-ID: <aend9t$8enbk$1@ID-100557.news.dfncis.de> (raw)
In-Reply-To: 3D0E2559.1080909@mail.com

Hyman Rosen wrote:
> //-----widget.h-------
> class WidgetImpl; // forward declare class
> class Widget
> {
> auto_ptr<WidgetImpl> pImpl; // OK for WidgetImpl to be incomplete type
> public:
> Widget();
> void method1();
> void method2();
> };
> //-----widget.cpp-----
> class WidgetImpl
> {
> public:
> void method1() { }
> void method2() { }
> };
> Widget::Widget() : pImpl(new WidgetImpl) { }
> void Widget::method1() { pImpl->method1(); }
> void Widget::method2() { pImpl->method2(); }

Yes, but I would do it with references instead of pointer ;-)

Immanuel Scholz




  parent reply	other threads:[~2002-06-18 13:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 10:28 more to ada paper critic Immanuel Scholz
2002-06-17 17:23 ` Ted Dennison
2002-06-17 18:07   ` Hyman Rosen
2002-06-18  1:50     ` Ted Dennison
2002-06-18  5:38       ` Eric G. Miller
2002-06-18 13:42     ` Immanuel Scholz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-17 11:33 Grein, Christoph
2002-06-17 15:16 Gautier direct_replies_not_read
2002-06-17 15:26 Gautier direct_replies_not_read
2002-06-18 13:30 ` Immanuel Scholz
2002-06-18 13:35   ` Steve O'Neill
2002-06-18 17:59   ` Christoph Schlegel
2002-06-19 20:41     ` Immanuel Scholz
2002-06-20 19:39       ` Christoph Schlegel
2002-06-19 16:05   ` Britt Snodgrass
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox