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-16 09:28:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!enst.fr!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: RE: Decimal Floating point was RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question Date: Fri, 16 Aug 2002 09:26:44 -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 1029515282 97094 137.194.161.2 (16 Aug 2002 16:28:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 16 Aug 2002 16:28: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:28123 Date: 2002-08-16T09:26:44-07:00 From: Bob Leif, To: Keith Thompson et al. I only suggested To_Static as a possible implementation. All I want to do is to create or be able to use a decimal type at run-time based on either automatic or the simple-minded sum the exponents for multiplication and subtract the exponents for division algorithm. As I have previously stated, I would be quite 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: Thursday, August 15, 2002 11:26 PM To: comp.lang.ada@ada.eu.org Subject: Re: Decimal Floating point was RE: Information Systems Annex was RE: Dispatching and generics - language lawyer question "Robert C. Leif" writes: > Since intermediate values in a calculation how a low frequency of being > printed out, the simplest solution to digits is to leave it at a fixed > value, which will usually be the maximum number of digits allowed. This > simplifies the use of precompiled datatypes. Only one for each value of > digits needs to be created. > > Since Ada has a function Ada.Unchecked_Conversion(S : Source) return > Target; she does permit a change in types. In the case of the delta, I > am proposing what I hope is much less extreme. I want to tell the > compiler to accept a non-static number as a static number. Since this is > not a type change but the change of a property of a type, I do not know > how to do this? You "want to tell the compiler to accept a non-static number as a static number". That barely even makes sense, and I don't believe it's what you really need. You're saying you want to use a non-static value in a context where the language requires a static value. Coercing the compiler to accept a non-static value in such a context is not a "much less extreme" way to do this, and a pragma is not an appropriate way to specify it. I think you're jumping from what you want to be able to do to a proposed implementation. Unfortunately, the implementation you're proposing is not workable. What problem are you trying to solve? -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> Schroedinger does Shakespeare: "To be *and* not to be"