From -6926063268981743104 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f78e5,58c782e1b9feb4ed X-Google-Attributes: gidf78e5,public From: Pete Becker Subject: Re: PARTIAL CLASS DEFINITIONS Date: 1999/06/12 Message-ID: <3761AE00.74475382@acm.org>#1/1 X-Deja-AN: 488627244 Content-Transfer-Encoding: 7bit Approved: Fergus Henderson References: <7jqopn$cfu$1@nnrp1.deja.com> <7jre14$6d8$1@panix.com> X-Original-Date: Fri, 11 Jun 1999 20:46:56 -0400 X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@news.unimelb.edu.au X-Trace: izvestia.its.unimelb.edu.au 929151993 10113 128.250.29.16 (12 Jun 1999 01:46:33 GMT) Organization: Road Runner X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUAN2G75+EDnX0m9pzZAQG9TgGAnN7Oc8HIjk2IIh5G10phO+ddQoxilBQp 9uP/VLM6Y7lZihIZA2BIyHi/GDdu+CG/ =qlUV Mime-Version: 1.0 NNTP-Posting-Date: 12 Jun 1999 01:46:33 GMT Newsgroups: comp.std.c++ Greg Comeau wrote: > > In article <7jqopn$cfu$1@nnrp1.deja.com> rado42@my-deja.com writes: > >Here I would like to make a proposal for C++ extension and to suggest a > >discussion about it. > > > >As all we know, one cannot access the members (both data and function) > >of a class if the class definition is not visible, e.g. > > > >class MyClass* a; > >a->myMember(); > > > > > >will cause a compilation error: the compiler does not know that MyClass > >has myMember(), even if actually this is the case. > > > >That means that in order to use ANY class member, the code must see the > >ENTIRE class definition: e.g. > > > > > >class MyClass > >{ > >stuff > >stuff > >more stuff > >private stuff > > I'm not clear on your proposal. What is it, would you like to see > that the class definition does not have to be visible (in whole or in part)? > You shouldn't need to see the entire proposal. Can't you just figure it out from what was presented? Just as the compiler could figure out what MyClass really looks like, just from seeing how it's used. -- Pete Becker Dinkumware, Ltd. http://www.dinkumware.com --- [ 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://reality.sgi.com/austern_mti/std-c++/faq.html ]