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!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Division by zero Date: 29 Jun 2005 12:03:52 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <79ahr0jozmqb$.10jzllrcjpmsv.dlg@40tude.net> <_pwre.7121$U4.1023104@news.xtra.co.nz> <1vpqf17f3oear.1nvpuff629h70.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1120061032 10224 192.74.137.71 (29 Jun 2005 16:03:52 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 29 Jun 2005 16:03:52 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:11736 Date: 2005-06-29T12:03:52-04:00 List-Id: "Dmitry A. Kazakov" writes: > On 29 Jun 2005 09:27:01 -0400, Robert A Duff wrote: > > > I agree -- everybody is confusing the issue by talking about > > user-defined functions that happen to be called "/". > > Why there should be any difference? User-defined "/" is as good (bad) as > the predefined one. If the contract reads: "the second argument is never > 0", then it is absolutely no matter what "/" does! The contract is broken > on the caller's side. Because in Ada, the "contract" is written starting with "--", and the compiler can't understand it! - Bob