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=-2.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7009ff26a584c028 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Duncan Sands Newsgroups: comp.lang.ada Subject: Re: Dimensions and fixed point types Date: Fri, 11 Jun 2004 21:10:56 +0200 Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1086981064 44436 212.85.156.195 (11 Jun 2004 19:11:04 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 11 Jun 2004 19:11:04 +0000 (UTC) Cc: Hyman Rosen To: comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.6.2 In-Reply-To: Content-Disposition: inline X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:1404 Date: 2004-06-11T21:10:56+02:00 On Friday 11 June 2004 19:47, Hyman Rosen wrote: > Duncan Sands wrote: > > On Friday 11 June 2004 09:26, Hyman Rosen wrote: > >>You appear to imply that multiplying apples and apples > >>to get apples, on the other hand, *is* "type safe". Why? > > > > I implied no such thing. > > Well, here's what you said: > > It seems to me that a much better approach would be > > to say that multiplication between different fixed > > point types is NOT automatically defined > > This certainly implies that you believe that multiplication > of a fixed point type with itself should be automatically > defined. How else is one to read this? There is no contradiction. Not saying X is not the same as saying not X. However from a practical point of view, any proposal to not have multiplication be auto-defined between fixed point numbers of the same type would never be accepted, since such multiplication is defined in the case of integer and floating point types. So I didn't propose it. That doesn't mean I think that auto-defining such multiplication is a good idea. In many contexts multiplying two numbers of the same type makes no sense. Ciao, Duncan.