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: a07f3367d7,d2a3144038a5a80e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!news3.google.com!news2.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news.skynet.be!195.238.0.222.MISMATCH!newsspl501.isp.belgacom.be!tjb!not-for-mail Date: Mon, 15 Jun 2009 11:30:17 +0200 From: Olivier Scalbert User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Question on types conversions - operations References: <4a33cb0b$0$2848$ba620e4c@news.skynet.be> <6e151h.kgc.ln@hunter.axlog.fr> In-Reply-To: <6e151h.kgc.ln@hunter.axlog.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4a3614a9$0$2855$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: 66478f0e.news.skynet.be X-Trace: 1245058217 news.skynet.be 2855 87.65.139.6:48864 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news2.google.com comp.lang.ada:6476 Date: 2009-06-15T11:30:17+02:00 List-Id: Jean-Pierre Rosen wrote: > sjw a �crit : >>> With S := Speed(Float(L) / Float(T)) ? Mmmm ... not nice. >>> > 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). > Agree ! I thought it was not nice, because if I change the three types Length, Time and Speed from Float to My_Float, then I have to modify: S := Speed(My_Float(L) / My_Float(T))