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=-1.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab1d177a5a26577d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "Chuck" Newsgroups: comp.lang.ada Subject: Re: What's wrong with C++? Date: Fri, 18 Feb 2011 01:11:34 -0600 Organization: A noiseless patient Spider Message-ID: References: <104cfd9f-dbf5-4f05-9c4a-a2319dd371a9@glegroupsg2000goo.googlegroups.com> Injection-Date: Fri, 18 Feb 2011 07:11:39 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="Nvo31E/p3EKlT4bDI5+9FA"; logging-data="28374"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dvcLmypRnA/MrlE6lCuVH" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-RFC2646: Format=Flowed; Response X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 Cancel-Lock: sha1:MXVrvZM3q+YD0pHAM5J/QJbycKU= X-Priority: 3 X-MSMail-Priority: Normal Xref: g2news1.google.com comp.lang.ada:17406 Date: 2011-02-18T01:11:34-06:00 List-Id: Yannick Duch�ne (Hibou57) wrote: > Le Thu, 17 Feb 2011 12:04:00 +0100, J-P. Rosen a > écrit: >> Le 17/02/2011 00:35, Peter C. Chapin a écrit : >>> A macro defined in someheader.h might change the meaning of the >>> declarations in someotherheader.h. >> And especially the following one: >> #define private public >> >> Great for those who think that information hiding is a nuisance! > > I am not joking here : at the time I learned C/C++, I hired a book > from a library, Seriously dude, you don't "hire" a book from a library unless you are way stupid (no offense, you are not my problem). > which was proudly stating C/C++ macros are so much > powerful (sic) that one may "#define BEGIN {", "#define END }" and so > on, so as to happily write BASIC in C/C++ ! And that was not a book > playing the fool on C/C++, that book was promoting C/C++. I use that mechanism for "templates". It may not be scalable, but I don't need a driver's license to drive. AGE CHECK!