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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-05 09:12:52 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!rutgers!dziuxsolim.rutgers.edu!uunet!news.mathworks.com!hookup!swrinde!news.uh.edu!uuneo.neosoft.com!Starbase.NeoSoft.COM!not-for-mail From: progers@Starbase.NeoSoft.COM (SBS Engineering) Newsgroups: comp.lang.ada Subject: C++ Envy Date: 5 Jan 1995 11:12:52 -0600 Organization: NeoSoft Internet Services +1 713 684 5969 Message-ID: <3eh9ak$q3g@Starbase.NeoSoft.COM> NNTP-Posting-Host: starbase.neosoft.com Date: 1995-01-05T11:12:52-06:00 List-Id: Tired of hearing about all those things that C++ can do that Ada87 can't? Then here's a cute trick in C++ that you'll like: #define private public #include compromised_class.h #define private private Confused? The above says that when compiling the class header for compromised_class, all the private stuff will be public, and thus available to the world. A friend showed me the above, and quoted the source as saying that eternal damnation was insufficient punishment... Hard to argue with. -- Pat Rogers progers@acm.org PS: Yes, yes, yes, I know all languages allow one to say silly and questionable things. If you're upset by this post, then get a life!