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,57f23cc4dd455d6c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-23 06:37:44 PST Path: nntp.gmd.de!newsserver.jvnc.net!darwin.sura.net!pirates!gatech!howland.reston.ans.net!news.sprintlink.net!EU.net!uknet!warwick!not-for-mail From: csusb@csv.warwick.ac.uk (Jules) Newsgroups: comp.lang.ada Subject: Re: C++ Envy Date: 23 Jan 1995 14:37:44 -0000 Organization: University of Warwick, Coventry, UK Message-ID: <3g0evo$1h2@borage.csv.warwick.ac.uk> References: <3f2tbv$r5o@miranda.gmrc.gecm.com> <3frte2$re5@cronkite.seas.gwu.edu> NNTP-Posting-Host: borage.csv.warwick.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: 1995-01-23T14:37:44+00:00 List-Id: In article , jmartin@kaiwan009.kaiwan.com (Jay M Martin) writes: > >Do you understand configuration management? You can't just go and >change the header file, it is protected. Changing it would require >a special form signed by the President, Bozo the Clown,the Pope and their >Moms. The original point of this thread was that you don't actually have to change the header file itself to change its meaning in C/C++. If you want to have access to some private members of a class in C++, you merely have to write: #define class struct #define private public #include and all the private members suddenly become public. No changes to the header file. C++'s protection just ain't good enough. -- /* Julian R Hall csusb@csv.warwick.ac.uk Flames should be redirected to /dev/null - I don't know what I'm saying myself so don't expect it to make sense all the time! */