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,81054609038e88e3 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!newspeer2.se.telia.net!se.telia.net!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114 X-Accept-Language: sv, sv-se, sv-fi, en-gb, en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Literate Programming in Ada, AdaDoc, AdaBrowse References: <2sqmccF1oit5sU1@uni-berlin.de> <2sr4jaF1od20uU1@uni-berlin.de> In-Reply-To: <2sr4jaF1od20uU1@uni-berlin.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Message-ID: Date: Sat, 09 Oct 2004 23:20:42 GMT NNTP-Posting-Host: 217.209.116.179 X-Complaints-To: abuse@telia.com X-Trace: newsc.telia.net 1097364042 217.209.116.179 (Sun, 10 Oct 2004 01:20:42 CEST) NNTP-Posting-Date: Sun, 10 Oct 2004 01:20:42 CEST Organization: Telia Internet Xref: g2news1.google.com comp.lang.ada:4972 Date: 2004-10-09T23:20:42+00:00 List-Id: Nick Roberts wrote: > The syntax of the macros (if I keep them), would perhaps need to be > $LINE{...} where the ... is replaced by the correct value. The idea > behind the macros was so that you could write something like: >=20 > if Error_Detected then > Put_Line (Current_Error, "Error in $LINE{} $FILE{}"); > else > ... I think this would be done better with functions: if Error_Detected then Put_Line (Current_Error, "Error on line " & ECLAT.Line_Number & " in " & ECLAT.File_Name & '.'); else ... --=20 Bj=F6rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu