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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,208279d79d40e7d8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-08-27 16:09:15 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: "Luke A. Guest" Newsgroups: comp.lang.ada Subject: Re: Ada Advocacy. Date: Thu, 28 Aug 2003 00:09:14 +0100 Message-ID: References: NNTP-Posting-Host: abyss2.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.demon.co.uk 1062025754 6287 62.49.62.197 (27 Aug 2003 23:09:14 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 27 Aug 2003 23:09:14 +0000 (UTC) User-Agent: Pan/0.13.4 (She had eyes like strange sins.) Xref: archiver1.google.com comp.lang.ada:41908 Date: 2003-08-28T00:09:14+01:00 List-Id: On Wed, 27 Aug 2003 15:12:08 -0500, Wes Groleau wrote: > >>>The good Ada feature for the debug purpose is an image of enumeration values. >>>But I do not think that we need image of the object names. > > However, I could imagine the usefulness of something like > > pragma Debug_Output ( Debugging => true, Entity_Name ); > > where, if Debugging is false, does nothing, otherwise > prints something like > > Entity_Name => (something like Entity_Name'Img) > at line 345 of filename.adb (line 37 of Package.SubProg) Actually, indirectly, you've also shown another example of a really cool feature of Ada function blah(a : Integer, b : Float) : Boolean; ... blah(b => 1.0, a => 10); It'd be so cool to be able to do this in other languages... Luke.