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,e01fe1b326df26d4 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!hwmnpeer01.lga!hwmedia!news-server.columbus.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!tornado.socal.rr.com.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Division by zero References: <79ahr0jozmqb$.10jzllrcjpmsv.dlg@40tude.net> From: Keith Thompson Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:XRPUXY7Dp1E57AsYhSKAKqLO1po= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 Jun 2005 03:22:39 GMT NNTP-Posting-Host: 66.75.136.120 X-Complaints-To: abuse@rr.com X-Trace: tornado.socal.rr.com 1118632959 66.75.136.120 (Sun, 12 Jun 2005 20:22:39 PDT) NNTP-Posting-Date: Sun, 12 Jun 2005 20:22:39 PDT Organization: Road Runner High Speed Online http://www.rr.com Xref: g2news1.google.com comp.lang.ada:11303 Date: 2005-06-13T03:22:39+00:00 List-Id: Jeffrey Carter writes: [...] > The problem, it seems to me, is that the developer may deliberately > write a division of a variable by static zero for a number of > reasons. He may want it to raise Constraint_Error at run time, Surely "raise Constraint_Error;" is an easier way to do that (though I suppose I can imagine reasons for wanting to do it indirectly). > or may > have redefined "/" for the type of the variable to do something > meaningful if the divisor is zero. Then that's not division; it's just a call to a function whose name happens to be "/". -- Keith Thompson (The_Other_Keith) kst-u@mib.org San Diego Supercomputer Center <*> We must do something. This is something. Therefore, we must do this.