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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c7ea1cb7a2beb2ee X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: Disallowing Pre-Defined Operations Date: 2000/03/16 Message-ID: <8apcm0$jn3$1@nnrp1.deja.com>#1/1 X-Deja-AN: 598056904 References: <8a9eeg$qtv$1@newpoisson.nosc.mil> <8ababr$c3u$1@wanadoo.fr><8afhed$f9v$1@newpoisson.nosc.mil> <8aoifb$49f$1@newpoisson.nosc.mil> <38D001D7.4D6E4284@averstar.com> <38D013EF.1F431E34@cadence.com> X-Http-Proxy: 1.0 x24.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Thu Mar 16 01:16:52 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-03-16T00:00:00+00:00 List-Id: In article <38D013EF.1F431E34@cadence.com>, Paul Graham wrote: > Things get complicated > when you > try to map the physical world onto unit data types. For instance: > > type time is ... > type distance is ... > type velocity is ... > type acceleration is ... > type mass is ... > > function "/"(x : distance; y : time) return velocity; > function "/"(x : velocity; y : time) return acceleration; > function "*"(x : mass; y : acceleration) return force; > function "*"(x : force; y : distance) return work; This is a very familiar issue. The above approach is only one of several ways to approach this problem, other approaches have been discussed in detail in past threads. Sent via Deja.com http://www.deja.com/ Before you buy.