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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c1983ae2deb642ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-25 15:23:46 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Ada -vs- GNAT Date: 25 May 2002 15:23:45 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205251423.1273b6b7@posting.google.com> References: <8tNH8.76854$L76.130053@rwcrnsc53> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022365426 12771 127.0.0.1 (25 May 2002 22:23:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 May 2002 22:23:46 GMT Xref: archiver1.google.com comp.lang.ada:24801 Date: 2002-05-25T22:23:46+00:00 List-Id: "Steve Doiel" wrote in message news:<8tNH8.76854$L76.130053@rwcrnsc53>... > "Preben Randhol" wrote in message > news:slrnaeug17.pa.randhol+abuse@kiuk0156.chembio.ntnu.no... > > On Sat, 25 May 2002 02:47:52 GMT, Steve Doiel wrote: > > > > > > Recently I did some work with XML/Ada and found a few pieces code > dependent > > > on the GNAT specific attributes 'img and 'unrestricted_access. I was > able > > > to make the code work with ObjectAda (and any other Ada compiler) by > making > > > a few small changes to the sources. > > > Why not use > Put_Line( Some_Type'Image( Some_Value ) ) > > and avoid the habit of using non-standard features. Because when you are writing debugging statements, it is a time when convenience of writing dominates maintenance and readability concerns (since they don't arise). So that's when 'Img is useful (although we had in mind originally that 'Img should remove the dratted space in front of integers and also allow arrays, records etc). (again for convenience of debugging).