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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no 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 13:10:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!news.mailgate.org!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: RE: Ada -vs- GNAT Date: Sat, 25 May 2002 13:09:48 -0700 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1022357405 5285 137.194.161.2 (25 May 2002 20:10:05 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 25 May 2002 20:10:05 +0000 (UTC) Return-Path: X-Envelope-From: rleif@rleif.com X-Envelope-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:24791 Date: 2002-05-25T13:09:48-07:00 From: Bob Leif To: Simon Wright et al. The solution to the use of "img" is to make it standard Ada. The present compiler vendors should implement "img". -----Original Message----- From: comp.lang.ada-admin@ada.eu.org [mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Simon Wright Sent: Friday, May 24, 2002 9:22 PM To: comp.lang.ada@ada.eu.org Subject: Re: Ada -vs- GNAT "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.