comp.lang.ada
 help / color / mirror / Atom feed
From: "martin.m.dowie" <martin.m.dowie@ntlworld.com>
Subject: Re: Safe Units Handling in Ada
Date: Thu, 23 May 2002 11:03:46 +0100
Date: 2002-05-23T11:03:46+01:00	[thread overview]
Message-ID: <jf3H8.367$FZ4.75228@newsfep1-win.server.ntli.net> (raw)
In-Reply-To: 3CECB651.3010209@blancolioni.org

"Fraser" <newsfraser@blancolioni.org> wrote in message
news:3CECB651.3010209@blancolioni.org...
[snip]
> Good idea.  Even better, a one liner.  It's added, and if you don't want
> to wait, you can add in the procedure Write_Unit after line 83 of the
> file macks-writers.adb in version 0.0.2 the following line:
>
>        Write_Function (Macks.Table.Divide, Name, Name, "Float_Type");

Wouldn't a better (by this I mean more readable/understandable) solution be
to derive a new 'Unitless' (or 'Dimensionless') type from 'Float_Type'?

Also, can't there just be a single "pragma Inline"? i.e. "pragma Inline
("*", "/");"
at the bottom of the file - doesn't this cover all the overloaded operators
prior
to this single pragma?

Cracking effort all the same! :-)






  reply	other threads:[~2002-05-23 10:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-21 10:01 Safe Units Handling in Ada Fraser Wilson
2002-05-21 14:21 ` Pat Rogers
2002-05-21 15:58 ` Stephen Leake
2002-05-22  8:32   ` Fraser
2002-05-22 10:21 ` Fraser
2002-05-22 16:37   ` Stephen Leake
2002-05-23 10:16     ` Fraser
2002-05-23 16:03       ` Stephen Leake
2002-05-22 22:44   ` William C. Brennan
2002-05-23  8:55     ` Russ
2002-05-23  9:28     ` Fraser
2002-05-23 10:03       ` martin.m.dowie [this message]
2002-05-23 10:24         ` Fraser
2002-05-23 11:03           ` martin.m.dowie
2002-05-23 15:57     ` Dan Andreatta
2002-05-23 16:15       ` Fraser Wilson
2002-05-23 16:48       ` martin.m.dowie
2002-05-23  9:04 ` Russ
2002-05-23 10:01   ` Fraser Wilson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox