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,a00006d3c4735d70 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-02 14:09:48 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!HSNX.atgi.net!cyclone-sf.pbi.net!216.196.106.144!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 02 Mar 2004 16:09:46 -0600 Date: Tue, 02 Mar 2004 17:09:46 -0500 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: In-Out Parameters for functions References: <4020C947.81A6D703@0.0> <1077727853.904323@master.nyc.kbcfp.com> <1077810250.28474@master.nyc.kbcfp.com> <1078162736.111267@master.nyc.kbcfp.com> <8qW0c.24142$TF2.22229@nwrdny02.gnilink.net> <07mdndsdVakUXdndRVn-tA@comcast.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.77.160 X-Trace: sv3-O1LXFt9nqzf4l8HkICJRRdOVndMFPqRS6ZnVVqEyAErPr743+V6vbxGqYW8PPdr2Nbum85NuFQA+kBt!pVK+12SRgKyDbgZsjOwC05wdCTg1h1D4N6zf9n+RHQlhJEZrXmZMZbnvtBxrfA== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.lang.ada:6016 Date: 2004-03-02T17:09:46-05:00 List-Id: Georg Bauhaus wrote: > Robert I. Eachus wrote: > : > : And was actually surprised that GNAT didn't give me a warning and do > : just that. > > Maybe I just haven't understood, however: > Compiling: hyman_example.adb (source file time stamp: 2004-03-02 16:28:14) > > 11. a := 1 / a; > | > >>> warning: division by zero > >>> warning: "Constraint_Error" will be raised at run time > > 18 lines: No errors, 2 warnings > > (further warnings about C, D, F, G, I, J not being modified > but not declared constant, if requested.) Hmmm. What version, and with which command line parameters? I actually used: gnatmake -gnato -f -O3 hyman_example.adb With GNAT 3.15p for Windows/x86. -- Robert I. Eachus "The only thing necessary for the triumph of evil is for good men to do nothing." --Edmund Burke