comp.lang.ada
 help / color / mirror / Atom feed
From: Martin <martin.dowie@btopenworld.com>
Subject: Re: WG: SI Units - has Ada missed the boat?
Date: Tue, 10 Jul 2007 02:14:55 -0700
Date: 2007-07-10T02:14:55-07:00	[thread overview]
Message-ID: <1184058895.207898.200040@d55g2000hsg.googlegroups.com> (raw)
In-Reply-To: <QeBki.3524$qu5.1837@trndny02>

On Jul 10, 2:26 am, Hyman Rosen <hyro...@mail.com> wrote:
[snip]
> I expect that most C++ implementations will follow the rule that
> 90% of the way is enough, and not bother with radians or trying to
> distinguish between becquerel and hertz or Fahrenheit, Celsius, and
> Kelvin. But if someone wants to go the whole way, they can do it.
> It's just a matter of writing more complicated combining rules for
> the templates. And none of it has any runtime overhead at all -
> objects of dimensioned types take no more space than plain numbers.

There's no runtime overhead when optimisation is switched on. Without
optimisation there is quite a bit of overhead. Or at least that's my
experience when using this library with VC++2005.

Cheers
-- Martin






  reply	other threads:[~2007-07-10  9:14 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 [this message]
2007-07-10  9:22 ` Martin
2007-07-12  1:27 ` none
2007-07-12 10:39   ` Colin Paul Gloster
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