|
|
Up |
|
|
  |
Author: Gary ScottGary Scott Date: Jul 2, 2008 18:01
Kinda nice...I think I'd be happy with little more than a bunch of
standardized named constants.
Dmitry A. Kazakov wrote:
> The library provides an implementation of dimensioned values for Ada. Unit
> checks are made at run-time, if not optimized out by the compiler. SI and
> irregular measurement units are supported. Shifted units like degrees
> Celsius are supported too. Conversions from and back to strings are
> provided for all various irregular units. An extensive set of GTK widgets
> for dealing with dimensioned values is included, though use of GTK is not
> mandatory for the rest of the library.
>
> http://www.dmitry-kazakov.de/ada/units.htm
>
> This version is adapted to recently published GtkAda 2.10.2, which has
> changed behaviour of popup windows.
>
--
Gary Scott
mailto:garylscott@sbcglobal dot net
|
| Show full article (1.12Kb) |
|
| | 4 Comments |
|
  |
Author: Ron FordRon Ford Date: Jul 2, 2008 19:16
On Wed, 02 Jul 2008 20:01:45 -0500, Gary Scott posted:
> Kinda nice...I think I'd be happy with little more than a bunch of
> standardized named constants.
>
> Dmitry A. Kazakov wrote:
>> The library provides an implementation of dimensioned values for Ada. Unit
>> checks are made at run-time, if not optimized out by the compiler. SI and
>> irregular measurement units are supported. Shifted units like degrees
>> Celsius are supported too. Conversions from and back to strings are
>> provided for all various irregular units. An extensive set of GTK widgets
>> for dealing with dimensioned values is included, though use of GTK is not
>> mandatory for the rest of the library.
>>
>> http://www.dmitry-kazakov.de/ada/units.htm
>>
>> This version is adapted to recently published GtkAda 2.10.2, which has
>> changed behaviour of popup windows.
>>
From the link:
|
| Show full article (1.66Kb) |
|
| | no comments |
|
  |
Author: Arjen MarkusArjen Markus Date: Jul 2, 2008 23:34
On 3 jul, 03:01, Gary Scott sbcglobal.net> wrote:
> Kinda nice...I think I'd be happy with little more than a bunch of
> standardized named constants.
>
> Dmitry A. Kazakov wrote:
>> The library provides an implementation of dimensioned values for Ada. Unit
>> checks are made at run-time, if not optimized out by the compiler. SI and
>> irregular measurement units are supported. Shifted units like degrees
>> Celsius are supported too. Conversions from and back to strings are
>> provided for all various irregular units. An extensive set of GTK widgets
>> for dealing with dimensioned values is included, though use of GTK is not
>> mandatory for the rest of the library.
>
>
>> This version is adapted to recently published GtkAda 2.10.2, which has
>> changed behaviour of popup windows.
>
> --
> ...
|
| Show full article (1.40Kb) |
| no comments |
|
  |
Author: James GilesJames Giles Date: Jul 2, 2008 23:51
Arjen Markus wrote:
...
Unfortunately, most of the ones for Fortran only interpretively
keep track of units rather than enforce their use. That is, you
can't declare a variable to hold, say, only energy and have the
type system automatically detect an error if you ever try to
assign anything else to it.
The Ada method of this thread can declare such variables. That's
a considerable step forward. I think it may be possible to do it
with Fortran using parameterized types, though whether you can
do it with KIND parameters or only with non-KIND parameters
(or even, for sure, at all) I can't tell without an implementation
and some time to play with it.
--
J. Giles
|
| Show full article (1.15Kb) |
| no comments |
|
  |
|
|
  |
Author: Arjen MarkusArjen Markus Date: Jul 3, 2008 00:20
On 3 jul, 08:51, "James Giles" worldnet.att.net> wrote:
> Arjen Markus wrote:
>
> ...
>
>> There are several libraries in Fortran that can deal with
>> numbers with units. One is at:
>
>
> Unfortunately, most of the ones for Fortran only interpretively
> keep track of units rather than enforce their use. That is, you
> can't declare a variable to hold, say, only energy and have the
> type system automatically detect an error if you ever try to
> assign anything else to it.
>
> The Ada method of this thread can declare such variables. That's
> a considerable step forward. I think it may be possible to do it
> with Fortran using parameterized types, though whether you can
> do it with KIND parameters or only with non-KIND parameters ...
|
| Show full article (1.43Kb) |
| no comments |
|
RELATED THREADS |
  |
|
|
|