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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newscon02.news.prodigy.com!prodigy.net!newsmst01a.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr13.news.prodigy.com.POSTED!4988f22a!not-for-mail From: Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng References: <4229bad9$0$1019$afc38c87@news.optusnet.com.au> <1110032222.447846.167060@g14g2000cwa.googlegroups.com> <871xau9nlh.fsf@insalien.org> <3SjWd.103128$Vf.3969241@news000.worldonline.dk> <87r7iu85lf.fsf@insalien.org> <1110052142.832650@athnrd02> <1110284070.410136.205090@o13g2000cwo.googlegroups.com> <395uqaF5rhu2mU1@individual.net> <1111607633.301232.62490@z14g2000cwz.googlegroups.com> <1111628011.160315.134740@o13g2000cwo.googlegroups.com> Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-ID: NNTP-Posting-Host: 64.164.117.46 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr13.news.prodigy.com 1111689081 ST000 64.164.117.46 (Thu, 24 Mar 2005 13:31:21 EST) NNTP-Posting-Date: Thu, 24 Mar 2005 13:31:21 EST Organization: SBC http://yahoo.sbc.com X-UserInfo1: TSU[@I_A\S@QBTLYYZH@^SXBUSXB@DTMNHWB_EYLJZ]BGIELDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN Date: Thu, 24 Mar 2005 18:31:21 GMT Xref: g2news1.google.com comp.lang.ada:9922 comp.lang.c++:47105 comp.realtime:1688 comp.software-eng:5298 Date: 2005-03-24T18:31:21+00:00 List-Id: "Jerry Coffin" wrote in message news:1111628011.160315.134740@o13g2000cwo.googlegroups.com... > Martin Dowie wrote: > > Jerry Coffin wrote: > A preprocessor ... almost entirely missing from Ada. > When programming in C++, almost every use of the preprocessor is to make up for a shortcoming of the language. For example, #IFDEF #IFINDEF Other uses include some that are deprecated. For example, #DEFINE Since Ada does not have these shortcomings, preprocessors are not as necessary. That being said, I do know of Ada shops that have written their own preprocessors for such things as being able to ignore certain blocks of code prior to compilation, code instrumentation, and similar things. This turns out to be quite simple to do. I'm not sure why it is even being discussed as an issue since the C family of preprocessor statements are something of a kludge. Richard Riehle