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-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed.straub-nv.de!news.albasani.net!not-for-mail From: Dirk Herrmann Newsgroups: comp.lang.ada Subject: Re: conversions between fixed-point types Date: Mon, 28 Sep 2009 22:18:50 +0200 Organization: albasani.net Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net S3ivmFBpiLgFzmK6n2hcMsD9ndSmtbDgqj5HB+GB6bqzXBLKNz+8wda2g9V6LvrNyKVUoY3S2FsHEm8QrNIy4zKj8C1fBTqmylSsySCmspbZuI3uGjjNuY0itOk8A3UP X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Mon, 28 Sep 2009 20:18:51 +0000 (UTC) X-User-ID: S2v8h4ZZyKZbrMbPgSj820PeTWfdoQZ6P+ucqGvWEigRU8KdETos5FZse2olkMpeq8sBb/s2521XRfZxkvbr5w== In-Reply-To: Cancel-Lock: sha1:oYyTvYztTGdm77X7MNxwGxZZ3o8= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706) X-NNTP-Posting-Host: BuyxtyBfWTfOGKQ52yBzcSCVAUQYv9DatxSEDhXMhtA= Xref: g2news2.google.com comp.lang.ada:8521 Date: 2009-09-28T22:18:50+02:00 List-Id: sjw wrote: > Is the target hardware standard? Yes, it's an ARM core. > T_Delta : constant := 0.4; > type T is delta T_Delta range -10.0 .. 10.0; > for T'Small use T_Delta; :-) However, what I don't like about this solution is, that you have to make T_Delta publically visible. My point is not about anybody not knowing about T'Small - it's just that you can not control the use of the symbol T_Delta. Maybe later you want to rename it, or share the same constant between T1 and T2. -- Dirk