From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,169758d7f087ac5b X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-09 08:13:41 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!news.mathworks.com!panix!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: comar@cs.nyu.edu (Cyrille Comar) Newsgroups: comp.lang.ada Subject: Re: C++ Envy Date: 9 Jan 1995 11:13:41 -0500 Organization: Courant Institute of Mathematical Sciences Message-ID: <3ernbl$r81@lang8.cs.nyu.edu> References: <3eju61$3kn@nic.umass.edu> NNTP-Posting-Host: lang8.cs.nyu.edu Date: 1995-01-09T11:13:41-05:00 List-Id: yang@twain.ucs.umass.edu (Huayong YANG) writes: : : Tell me how the above trick compromises the following class: : : class T : { : int an_item; : public: : int another; : }; : : The data member an_item stays private, it seems to me. : what about using the proposed trick to redefine 'class' to be 'struct'. In which case, 'an_item' will become public, no? -- ------------------------------------------------------------------------ Cyrille Comar, E-mail: comar@cs.nyu.edu Gnat Project US phone: (212) 998-3489