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-06-07 15:39:25 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-02!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada -vs- GNAT Date: Fri, 7 Jun 2002 17:39:44 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:25480 Date: 2002-06-07T17:39:44-05:00 List-Id: Steve Doiel wrote in message ... >I've been using Ada for a several years now. In my opinion one of the >greatest strengths of the language is in its portability. I find it >reassuring that different vendors distribute the same reference manual for >the language. > >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. > >Personally I find the introduction of attributes and pragmas that are not >essential to be undesirable. I agree. GNAT does provide a help, though, with the restrictions pragmas: pragma Restrictions (No_Implementation_Pragmas); and pragma Restrictions (No_Implementation_Attributes); These are likely to be in the next version of Ada (see AI-257: http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00257.TXT ). Randy Brukardt.