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,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2fa53692def716b5 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: null range from 1 element discrete type Date: 1999/11/22 Message-ID: <81c2q9$bv1$1@nnrp1.deja.com>#1/1 X-Deja-AN: 551698223 References: <3835D5A0.F906D31D@mitre.org> X-Http-Proxy: 1.0 x43.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Nov 22 18:42:18 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-11-22T00:00:00+00:00 List-Id: In article <3835D5A0.F906D31D@mitre.org>, "Robert I. Eachus" wrote: > Since you always want a null range try: T'Val(1) .. > T'Val(0) Since > 'Val returns the base type of T, as long as the base type of T > contains at least one bit you are safe. > > -- > > Robert I. Eachus How an this possibly be any better than T'Last .. T'First, which also doesn't work, as the original question notes! Robert, the whole POINT of this question is how to get something that works when T only has one element. Your suggestion will of course raise CE in this case. There is no solution that works generally. Sent via Deja.com http://www.deja.com/ Before you buy.