From -8344865547230106510
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,58c782e1b9feb4ed,start
X-Google-Attributes: gidf78e5,public
From: rado42@my-deja.com
Subject: PARTIAL CLASS DEFINITIONS
Date: 1999/06/11
Message-ID: <7jqopn$cfu$1@nnrp1.deja.com>#1/1
X-Deja-AN: 488404565
Approved: Valentin Bonnard <bonnard@clipper.ens.fr>
X-Http-Proxy: 1.1 proxy.bulnet.com:3128 (Squid/2.1.PATCH2), 1.0 x39.deja.com:80  (Squid/1.1.22) for client 212.72.201.167, 212.72.201.3
X-Original-Date: Fri, 11 Jun 1999 10:35:36 GMT
Organization: Deja.com - Share what you know. Learn what you don't.
X-Article-Creation-Date: Fri Jun 11 10:35:36 1999 GMT
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBVAwUAN2EMKqwEuYhIxRhxAQExYgH9HEz3pErRFHFFTezKbUkfyDj+qEXJVnXi /oqkbLRvzwOOCg2/7Y38x3/u6MtTIOviBZlxC7FKl+uc/q52DG9jjg== =mPoY
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT)
Newsgroups: comp.std.c++

Hello everybody,

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



