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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,703c4f68db81387d X-Google-Thread: 109fba,703c4f68db81387d X-Google-Attributes: gid103376,gid109fba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Thu, 24 Mar 2005 05:43:35 +0100 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada,comp.lang.c++ Subject: Re: Teaching new tricks to an old dog (C++ -->Ada) References: <1110329098.642196@athnrd02> <1110361741.551255@athnrd02> <422edaec$0$26554$9b4e6d93@newsread4.arcor-online.net> <1111464133.508323@athnrd02> <423fe9df$0$11476$9b4e6d93@newsread2.arcor-online.net> <1111521825.653841@athnrd02> <424094b0$0$11481$9b4e6d93@newsread2.arcor-online.net> <1111568404.687226@athnrd02> <1111572591.296439@athnrd02> <1111574207.72969@athnrd02> <42414f88$0$9217$9b4e6d93@newsread4.arcor-online.net> <1111576802.823362@athnrd02> <1111577078.934620@athnrd02> <1111586334.958702.249050@o13g2000cwo.googlegroups.com> <1111608867.922129@athnrd02> <1111631889.495954@athnrd02> <1111634628.927041@athnrd02> In-Reply-To: <1111634628.927041@athnrd02> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <424244b6$0$11477$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Date: 24 Mar 2005 05:40:22 MET NNTP-Posting-Host: b0e24185.newsread2.arcor-online.net X-Trace: DXC=[Z1@oNA]NbWXNWN::=P9Ihe`BX@Z?dZ]MOidU X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:9888 comp.lang.c++:46996 Date: 2005-03-24T05:40:22+01:00 List-Id: Ioannis Vranos wrote: > Jim Rogers wrote: > >> My reading of the information at that url indicates that GMP allows >> the specification of precision, but not the specification of a limited >> range of valid values. Jim doesn't mention fpt ranges in the context of arrays. Just a floating point type whose values range between 0.0 and 1.0. And a description of the use of this type that has a range constraint. No arrays or signs in sight. > Since I have had enough with this signed value range of Ada, Forget about the sign, as you did in your code with min and max. This is not a sign issue. This isn't limited to array bounds checking. It has to do with types and with values that match at compile time. For a start, add a template parameter to class range from which the compiler can infer the min and max values.