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,c1983ae2deb642ab X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-25 07:46:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!wn1feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail From: "Steve Doiel" Newsgroups: comp.lang.ada References: Subject: Re: Ada -vs- GNAT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Message-ID: <8tNH8.76854$L76.130053@rwcrnsc53> NNTP-Posting-Host: 12.225.227.101 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc53 1022337988 12.225.227.101 (Sat, 25 May 2002 14:46:28 GMT) NNTP-Posting-Date: Sat, 25 May 2002 14:46:28 GMT Organization: AT&T Broadband Date: Sat, 25 May 2002 14:46:28 GMT Xref: archiver1.google.com comp.lang.ada:24757 Date: 2002-05-25T14:46:28+00:00 List-Id: "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. > > I think you should submit it to the developers of XML/Ada so they can > use it. I plan to do so. > The point is that sometimes things gets more easy and portable if you > use GNAT. Especially IO operations on different platforms. At the moment > I use some GNAT procedures in my program due to this. But of course if > somebody else would like to compile it (when I release it) with a > different compiler, then I would really like to have a copy of the > changes they did to make it compiler independant. The 'Img I only use > for debugging purposes as it is faster to put in a > > Put_Line (Some_Value'Img) > Why not use Put_Line( Some_Type'Image( Some_Value ) ) and avoid the habit of using non-standard features. SteveD > which will be removed as soon as I locate the problem. > > Preben