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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a3176060eb5b787e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-03-27 02:09:16 PST Newsgroups: comp.lang.ada From: davea@linkmsd.com (David Arno) Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!xlink.net!howland.reston.ans.net!swrinde!pipex!peernews.demon.co.uk!linkmsd.com!davea Subject: Re: Does Ada have macros ? References: <3kn413$259@newsbf02.news.aol.com> Organization: Thomson Training & Simulation Ltd Reply-To: davea@linkmsd.com X-Newsreader: Demon Internet Simple News v1.29 X-Posting-Host: linkmsd.demon.co.uk Date: Mon, 27 Mar 1995 09:15:30 +0000 Message-ID: <796295730snz@linkmsd.com> Sender: usenet@demon.co.uk Date: 1995-03-27T09:15:30+00:00 List-Id: In article <3kn413$259@newsbf02.news.aol.com> bcatlin@aol.com "B Catlin" writes: : I don't seem to remember Ada 83 having a macro capability, does Ada 95 ? : If not, why not ? : I once came across a piece of C code that looked something like this (small section only shown): IF (JRXBBB NE JKLFUEL) THEN RRXFLOWR = 1.0; ELSE RRXFLOWR = 2.0; ENDIF; etc. Basically, the person who wrote it had used FORTRAN for many years and when required to use C, decided he hated it so created masses of macros that allowed him to write C code with an (almost) FORTRAN syntax. While this is an extreme case, such (mis)use of macros in languages such as C is common and this is why I approve of languages like Ada that supply no macro facility. What you see in a piece of Ada code is what you get (within a debugger for example). This does not hold true for C or other macro languages. -- David Arno