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-24 21:32:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!news.demon.co.uk!demon!pogner.demon.co.uk!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada -vs- GNAT Date: 25 May 2002 05:21:50 +0100 Organization: Pushface Sender: simon@smaug Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk X-NNTP-Posting-Host: pogner.demon.co.uk:62.49.19.209 X-Trace: news.demon.co.uk 1022301072 nnrp-14:24783 NO-IDENT pogner.demon.co.uk:62.49.19.209 X-Complaints-To: abuse@demon.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Xref: archiver1.google.com comp.lang.ada:24712 Date: 2002-05-25T05:21:50+01:00 List-Id: "Steve Doiel" writes: > 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. With a tailored version of Annex M. > 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. Which seems a reasonable idea. I (hope I) have removed all "'Img"s from the Booch Components, which are meant to be, and to a large extent are, compiler-independent. On the other hand, given that GNAT is my preferred compiler (for all sorts of reasons), I felt quite happy to use 'Object_Size when appropriate. > Personally I find the introduction of attributes and pragmas that are not > essential to be undesirable. > > In a recent thread on the gcc mailing list, Robert Dewar describes how ACT > introduced the pragma "Unreferened" such that code that previously appeared > as: > > pragma Warnings (Off, entitiy) > > could be replaced by > > pragma Unreferenced (entity) > > because the latter is "neater, reads better, and is clearer why it is > there." Of course pragma Warnings is implementation-defined too.