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-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Thread: 115aec,703c4f68db81387d X-Google-Thread: f43e6,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,gid115aec,gidf43e6,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!news.addix.net!border2.nntp.ams.giganews.com!nntp.giganews.com!lightspeed.eweka.nl!tudelft.nl!130.161.131.116.MISMATCH!tudelft.nl!transit0.news.tiscali.nl!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada,comp.lang.c++,comp.realtime,comp.software-eng Subject: Re: Class hierarchy of exceptions (Ada, C++) References: <1112027876.946645@athnrd02> From: Ludovic Brenta Date: Tue, 29 Mar 2005 00:02:22 +0200 Message-ID: <87vf7bv381.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:QYt3awHLcBVLStrSqb8UMua6erM= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 29 Mar 2005 00:02:28 CEST NNTP-Posting-Host: 83.134.243.93 X-Trace: 1112047348 dreader2.news.tiscali.nl 44101 83.134.243.93:36919 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:10098 comp.lang.c++:47694 comp.realtime:1798 comp.software-eng:5435 Date: 2005-03-29T00:02:28+02:00 List-Id: Tapio Kelloniemi writes: > If a replace I < J; with null; the result is: > gcc -c -gnatg temp.adb > temp.adb:2:04: warning: "I" is not modified, could be declared constant > temp.adb:2:04: warning: variable "I" is not referenced > temp.adb:3:04: warning: "J" is not modified, could be declared constant > temp.adb:3:04: warning: variable "J" is not referenced > gnatmake: "temp.adb" compilation error This is an excellent example of the power of GNAT. I think this would deserve more publicity in future presentations of the language and of GNAT. -- Ludovic Brenta.