From: Colin Paul Gloster <Colin_Paul_Gloster@ACM.org>
Subject: Re: WG: SI Units - has Ada missed the boat?
Date: 12 Jul 2007 10:39:05 GMT
Date: 2007-07-12T10:39:05+00:00 [thread overview]
Message-ID: <f750c9$s1c$2@newsserver.cilea.it> (raw)
In-Reply-To: 46958287$0$8946$4c368faf@roadrunner.com
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.
next prev parent reply other threads:[~2007-07-12 10:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-09 8:55 WG: SI Units - has Ada missed the boat? Grein, Christoph (Fa. ESG)
2007-07-09 9:49 ` Dmitry A. Kazakov
2007-07-10 1:26 ` Hyman Rosen
2007-07-10 9:14 ` Martin
2007-07-10 9:22 ` Martin
2007-07-12 1:27 ` none
2007-07-12 10:39 ` Colin Paul Gloster [this message]
2007-07-13 22:20 ` Dr. Adrian Wrigley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox