From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,18f7f6e041b3e0bf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-14 14:54:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question Date: Wed, 14 Aug 2002 14:53:43 -0700 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1029362042 90697 137.194.161.2 (14 Aug 2002 21:54:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 14 Aug 2002 21:54:02 +0000 (UTC) Return-Path: X-Envelope-From: rleif@rleif.com X-Envelope-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:28044 Date: 2002-08-14T14:53:43-07:00 From: Bob Leif To: Keith Thompson et al. Since virtually all of these decimal types will be intermediates in a calculation, they could all have the same number of digits. The delta is the problem. My crude workaround was to turn a non-static number into a static number by either a pragma or a method. However, I would be happy with a decimal floating type. -----Original Message----- From: comp.lang.ada-admin@ada.eu.org [mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Keith Thompson Sent: Wednesday, August 14, 2002 1:53 AM To: comp.lang.ada@ada.eu.org Subject: Re: Information Systems Annex was RE: Dispatching and generics - language lawyer question "Robert C. Leif" writes: > From: Bob Leif > To: Keith Thompson et al. > I would be happy with a decimal floating-point; but, would gladly settle > for a less elegant work-around. > > Since I have never worked with binary fixed-point types, please forgive > a naive question. Would the same capacity to create types with exponents > at run-time be of any use or is this equivalent to floating-point? I don't understand what kind of less elegant workaround you have in mind. I understand (I think) that you want an exponent value (or, nearly equivalently, the position of the decimal point) to be determined at run time. If you want it to vary for each object, I think you're talking about floating-point. If you just want a non-static but constant value determined when the type is created, that's something else. Here's an example from the RM: type Money is delta 0.01 digits 15; The delta and digits values must both be static expressions. Are you saying you want one or both of them to be non-static? -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> Schroedinger does Shakespeare: "To be *and* not to be"