comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert C. Leif" <rleif@rleif.com>
Subject: RE: Information Systems Annex
Date: Tue, 13 Aug 2002 16:53:07 -0700
Date: 2002-08-13T16:53:07-07:00	[thread overview]
Message-ID: <mailman.1029282841.28068.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <5ee5b646.0208130017.32fa6f3e@posting.google.com>

From: Bob Leif
To: Robert Dewar

I agree about COBOL providing strength; however, XML is and will be used
for reporting and achieving purposes. It is one of the few subjects that
Microsoft, IBM, Sun, and Adobe agree on. The XML Pattern element and its
attributes could be considered a generalized 21st century picture
clause.

As for decimals, how do I do the following in Ada?
2*10**-x * 3*10**y = 6*10**(y-x)      y and x being non-negative
integers.

If I have 10 or more decimal numbers with different exponents, I do not
know how to assign the optimum exponent at run-time. It would be
perfectly acceptable to have created a package of decimal types for the
entire range. However, the elegant way would be to instantiate a generic
at run-time, which is what one can presently do to size an array. The
y-x formula for the value of the exponent is the one I was taught in
high school for my slide-rule. 


-----Original Message-----
From: comp.lang.ada-admin@ada.eu.org
[mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Robert Dewar
Sent: Tuesday, August 13, 2002 1:18 AM
To: comp.lang.ada@ada.eu.org
Subject: Re: Information Systems Annex was RE: Dispatching and generics
- language lawyer question

"Robert C. Leif" <rleif@rleif.com> wrote in message
news:<mailman.1029204063.16221.comp.lang.ada@ada.eu.org>...
> One problem with the
> Information Systems Annex is that it was to some extent 
> based on COBOL,
> particularly, the picture clause.

To me that is a strength. After all, most financial software is still
written in COBOL, and the picture
clause in particular is one of the successful features
of that language. I think the reason for the lack of
use of Ada in the IS field has nothing whatever to do
with technical features in fact.

> I also believe that a way around the static requirement 
> for Ada decimals should be created.

I have no idea what this means

> I still would like to use the slide-rule formula to
> calculate the exponent. Would a pragma To_Static be 
> possible?

I have no guess as to what this might mean




  reply	other threads:[~2002-08-13 23:53 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-24  5:33 Dispatching and generics - language lawyer question Grein, Christoph
2002-07-24 22:55 ` Robert A Duff
2002-07-25 15:46   ` Ben Brosgol
2002-07-29 20:38     ` Robert A Duff
2002-07-31 22:52       ` Dmitry A.Kazakov
2002-07-31 20:18         ` Robert A Duff
2002-08-02  1:15           ` Dmitry A.Kazakov
2002-08-01 16:30             ` Hyman Rosen
2002-08-02 23:42               ` Dmitry A.Kazakov
2002-08-02 15:49                 ` Hyman Rosen
2002-08-02 17:48                   ` Stephen Leake
2002-08-10  3:03                     ` Warren W. Gay VE3WWG
2002-08-05 11:15                   ` Dmitry A. Kazakov
2002-08-12 12:44                   ` Robert Dewar
2002-08-13  2:00                     ` Information Systems Annex was " Robert C. Leif
2002-08-13  8:17                       ` Robert Dewar
2002-08-13 23:53                         ` Robert C. Leif [this message]
2002-08-13 17:37                       ` Keith Thompson
2002-08-13 23:53                         ` Robert C. Leif
2002-08-14  8:52                           ` Keith Thompson
2002-08-14 21:53                             ` Robert C. Leif
2002-08-15  9:31                               ` Robert Dewar
2002-08-15 21:54                                 ` Decimal Floating point was " Robert C. Leif
2002-08-16  6:26                                   ` Keith Thompson
2002-08-16 16:26                                     ` Robert C. Leif
2002-08-16 18:17                                       ` Keith Thompson
2002-08-16 15:26                                   ` Robert Dewar
2002-08-16 15:29                                   ` Robert Dewar
2002-08-15  9:26                           ` Robert Dewar
2002-08-15 16:17                             ` Darren New
2002-08-15 17:25                               ` David C. Hoos
2002-08-15 17:31                                 ` Darren New
2002-08-15 19:59                                 ` Frank J. Lhota
2002-08-15 17:39                               ` tmoran
2002-08-15 19:18                               ` Information Systems Annex was RE: Dispatching and generics - Larry Kilgallen
2002-08-15 18:41                                 ` Hyman Rosen
2002-08-16 15:49                                 ` Robert Dewar
2002-08-17  6:31                                   ` Simon Wright
2002-08-17 14:17                                     ` Robert Dewar
2002-08-15 21:54                             ` Decimal Floating types was RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question Robert C. Leif
2002-08-16 15:21                               ` Robert Dewar
2002-08-16 16:15                                 ` Decimal Floating types Warren W. Gay VE3WWG
2002-08-17 10:52                                   ` Robert Dewar
2002-08-17 14:30                                     ` Warren W. Gay VE3WWG
2002-08-20  0:26                                       ` Robert Dewar
2002-08-20  2:35                                         ` SteveD
2002-08-22 18:15                                         ` Richard Riehle
2002-08-23  3:23                                           ` Robert Dewar
2002-08-16 15:47                             ` Information Systems Annex (usefulness of Decimal Floats) Warren W. Gay VE3WWG
2002-08-17 10:54                               ` Robert Dewar
2002-08-17 14:06                                 ` Warren W. Gay VE3WWG
2002-08-17 10:56                               ` Robert Dewar
2002-08-17 14:12                                 ` Warren W. Gay VE3WWG
2002-08-17 19:04                                 ` Robert C. Leif
2002-08-20  0:25                                   ` Robert Dewar
2002-08-16 15:38                           ` Information Systems Annex was RE: Dispatching and generics - language lawyer question Robert Dewar
2002-08-13 22:50           ` Randy Brukardt
2002-08-14  0:02             ` Robert A Duff
2002-07-25  0:40 ` Robert Dewar
replies disabled

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