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-Thread: a07f3367d7,d2a3144038a5a80e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!s12g2000yqi.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Question on types conversions - operations Date: Mon, 15 Jun 2009 12:37:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <87a681dd-0bb8-4143-b875-2b3967364c61@s12g2000yqi.googlegroups.com> References: <4a33cb0b$0$2848$ba620e4c@news.skynet.be> <6e151h.kgc.ln@hunter.axlog.fr> NNTP-Posting-Host: 82.20.239.89 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1245094662 481 127.0.0.1 (15 Jun 2009 19:37:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 15 Jun 2009 19:37:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s12g2000yqi.googlegroups.com; posting-host=82.20.239.89; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6481 Date: 2009-06-15T12:37:42-07:00 List-Id: On Jun 15, 9:40=A0am, Jean-Pierre Rosen wrote: > sjw a =E9crit :>> With S :=3D Speed(Float(L) / Float(T)) ? Mmmm ... not n= ice. > > Why not nice? You are performing (for good reasons) a non homogenous > operation. Therefore you go to the no-dimension world (convert to > Float), do your operation there, then return to the dimensioned world > (convert to Speed). There's nothing in the code as presented to make sure that Distance'Base and Time'Base are both (even either!) Float. I suppose if the code said Speed (Distance'Base (L) / Time'Base (T)) we would get a failure to compile if one was Float and the other Long_Float.