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 03:49:29 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 03:49:29 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205250249.15b6fc84@posting.google.com> References: NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022323769 14698 127.0.0.1 (25 May 2002 10:49:29 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 May 2002 10:49:29 GMT Xref: archiver1.google.com comp.lang.ada:24741 Date: 2002-05-25T10:49:29+00:00 List-Id: "Steve Doiel" wrote in message news:... > Personally I find the introduction of attributes and pragmas that are not > essential to be undesirable. Well of course essential is somewhat in the eye of the beholder, but if you want to be sure of not using any non-standard pragmas you can use pragma Restrictions (No_Implementation_Pragmas); and/or pragma Restrictions (No_Implementation_Attributes); All Ada compilers introduce implementation pragmas and attributes. Furthermore there are of course dozens of oher ways in which the behavior of code can be implementation dependent (see annex M of the standard). Note that the restrictions above are also implementation dependent, but the ARG has recommended that these be added to the language (along with some other attributes and pragmas introduced by GNAT, including Unsuppress). By the way, you were lucky that you could get around the use of Unrestricted_Access. When applied to procedures, this provides very important (essential?) capabilities that are just not obtainable easily any other way (it is a real shame that the language got a bit crippled here by concerns of specific vendors about transitioning their existing Ada 83 compilers).