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.2 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HELO_NO_DOMAIN,MAILING_LIST_MULTI,RDNS_NONE,SPOOFED_FREEMAIL_NO_RDNS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cc4f25d878383cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-02 13:25:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "Gautier Write-only-address" Newsgroups: comp.lang.ada Subject: Re: Another Idea for Ada 20XX Date: Sun, 02 Dec 2001 21:24:09 +0000 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: avanie.enst.fr 1007328304 10409 137.194.161.2 (2 Dec 2001 21:25:04 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sun, 2 Dec 2001 21:25:04 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Originating-IP: [217.162.133.176] X-OriginalArrivalTime: 02 Dec 2001 21:24:10.0211 (UTC) FILETIME=[AE812B30:01C17B77] Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.6 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:17315 Date: 2001-12-02T21:24:09+00:00 >Especially for Space programs between US and Europe this would >be a *huge* benefit. >Just declare : > >type Inchs is Distance unit x Meters; > >and the compiler will do all unit conversions for you. > >And of course : >type Temperature is basic concept with basic unit Kelvin; >type Celsius is Temperature unit 1 Kelvin + 273.15; Why not - but the more subtle you design the unit management, the more subtle the mistakes will be... The choice of *one* unit system should be made *before* any programming, otherwise you don't get out of problems. And in some applications (scientific programming) you can forget these amusements about units, there are just too many variables. ____________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm#Ada NB: Do not answer to sender address, visit the Web site! _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp