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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-14 08:19:50 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!wn14feed!wn13feed!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail Message-ID: <3F8C1411.8010606@comcast.net> From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: += in ada References: <3F89F4E9.7050601@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.34.139.183 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc52.ops.asp.att.net 1066144790 24.34.139.183 (Tue, 14 Oct 2003 15:19:50 GMT) NNTP-Posting-Date: Tue, 14 Oct 2003 15:19:50 GMT Organization: Comcast Online Date: Tue, 14 Oct 2003 15:19:50 GMT Xref: archiver1.google.com comp.lang.ada:820 Date: 2003-10-14T15:19:50+00:00 List-Id: Vinzent 'Gadget' Hoefler wrote: > Well, I am not sure if this argument really would apply here, but > pragmas should not change the semantics of correct code... There used to be a rule in Ada that pragmas, other than language defined pragmas should not change the meaning of a program. That rule has been considerably changed in Ada 95, and distributed throughout ARM 1.1.3. But that certainly doesn't apply to this case. A pragma that chose one of several legal interpretations of a section of code would be perfectly fine. But again, that is really irrelevant. If you have a compiler that implements Annex H, the Safety and Security Annex, you will find that the pragmas Reviewable and Inspection_Point are sufficient for what Robert wants--canonical exception behaviour. (pragma Reviewable applies to an entire partition, Inspection_Point forces canonical behavior for one or more variables at a particular point. Much nicer for this application.) No pragma should be needed for what Bob wants, but usually you will find you need to set compiler options for optimization levels. -- Robert I. Eachus "Quality is the Buddha. Quality is scientific reality. Quality is the goal of Art. It remains to work these concepts into a practical, down-to-earth context, and for this there is nothing more practical or down-to-earth than what I have been talking about all along...the repair of an old motorcycle." -- from Zen and the Art of Motorcycle Maintenance by Robert Pirsig