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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e55245590c829bef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: _Type vs no _Type Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> <82lj5c5ecm.fsf@stephe-leake.org> <82zktq4n9b.fsf_-_@stephe-leake.org> <4cd53555$0$7665$9b4e6d93@newsspool1.arcor-online.net> Date: Sat, 6 Nov 2010 12:35:46 +0100 Message-ID: <1hjbm9sq2q6v6.1o1jb481odeuh$.dlg@40tude.net> NNTP-Posting-Date: 06 Nov 2010 12:35:45 CET NNTP-Posting-Host: 8658c029.newsspool2.arcor-online.net X-Trace: DXC=BB;8ZITKdjCC4i^e1BZ=_HA9EHlD;3YcB4Fo<]lROoRA8kF On Sat, 06 Nov 2010 12:00:38 +0100, Georg Bauhaus wrote: > On 11/6/10 8:12 AM, Dmitry A. Kazakov wrote: > >> Hmm, I would expect you arguing for >> >> function "/" (Dividend : T; Divisor : T) return T; >> >> For commutative operations like "+" it becomes a bit difficult: > > You aren't suggesting the computer-"+" is a commutative > operation, are you? I do. The implementation of "+" is not "strictly" commutative, but its interface does not tell that. The implied, not stated contract, is that "+" is indeed commutative allowing certain compiler optimizations. A numeric expression denotes a set of results satisfying certain conditions (accuracy constraints required by the ARM). Within these limits "+" is "weakly" commutative. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de