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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9742b7560760142d X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!newsserver.news.garr.it!newsserver.cilea.it!not-for-mail From: Colin Paul Gloster Newsgroups: comp.lang.ada Subject: Re: WG: SI Units - has Ada missed the boat? Date: 12 Jul 2007 10:39:05 GMT Organization: CILEA Message-ID: References: <46958287$0$8946$4c368faf@roadrunner.com> NNTP-Posting-Host: docenti.ing.unipi.it X-Trace: newsserver.cilea.it 1184236745 28716 131.114.28.20 (12 Jul 2007 10:39:05 GMT) X-Complaints-To: news@cilea.it NNTP-Posting-Date: 12 Jul 2007 10:39:05 GMT Xref: g2news1.google.com comp.lang.ada:16470 Date: 2007-07-12T10:39:05+00:00 List-Id: In news:46958287$0$8946$4c368faf@roadrunner.com timestamped Wed, 11 Jul 2007 21:27:30 -0400, none <""knoppix\"@(none)"> posted: |--------------------------------------------------------------------------| |"[..] | | | |We (software weenies) created a package (wish I could remember the name | |of it) that provided basic types LENGTH_UNITS, TIME_UNITS, SPEED_UNITS, | |DISTANCE_UNITS, TEMPERATURE_UNITS, ANGLE_UNTIS, etc. and then defined | |all of the overloaded operators to convert between those. | | | |[..] | | | |Up side : | |We NEVER had unit conversion issues, as the unit analysis was done by | |the compiler. | | | |[..] | |mydistance = myspeed * myint ; would not compile. | | | |You can see why the conversion package got so big... it had to defein | |ALL valid conversions. | | | |Sorry this was so long. Wish I could remember more of the details | |It was one of the most fun ADA jobs I worked on. | | | |Joe Simon | |WB2JQT" | |--------------------------------------------------------------------------| Thank you Joe Simon, that newsgroup post was inspiring.