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 X-Google-Thread: 103376,1b78051e65d4576a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-02-26 23:55:25 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!feed.news.tiscali.de!news.f.de.plusline.net!news-fra1.dfn.de!news.tele.dk!not-for-mail Date: Fri, 27 Feb 2004 08:55:00 +0100 From: Erlo Haugen <_elh_@_tema_._com_> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; da; rv:1.5) Gecko/20031007 X-Accept-Language: da,en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: types and non-contigous ranges References: <403e001b$0$144$edfadb0f@dread11.news.tele.dk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <403ef7ec$0$128$edfadb0f@dread11.news.tele.dk> Organization: TDC Totalloesninger NNTP-Posting-Host: 193.163.1.108 X-Trace: 1077868524 dread11.news.tele.dk 128 193.163.1.108:45172 X-Complaints-To: abuse@post.tele.dk Xref: archiver1.google.com comp.lang.ada:5886 Date: 2004-02-27T08:55:00+01:00 List-Id: Jacob Sparre Andersen skrev: > Erlo Haugen skrev: > > >>what is the easiest way to define a (sub)type consisting of ranges >>and single values? > > > I don't think you can do that. > > >>Let me give an example: >> >>I want a type, based on character, that contains 'A'..'Z' and '0'..'9' >>and some single characters like '�','�' and '�'. >> >>subtype Valid_Characters is character range 'A'..'Z' ????? and what then?? > > > I think you have to declare it as a new enumerated type: > > type Valid_Characters is ('0', '1', '2', ... '9', > 'A', 'B', 'C', ... '�', '�', '�'); > > >>Do I really have list all the values? > > > I think so (even though I didn't do it in the example). After trying and reading, I came to the same conclusion. But why is it that when i use '�', the compiler says that strings are delimited by " ? Using UC_AE_Diphthong is OK. -- Erlo ----- Remove underscores from mail address. The statements and opinions are mine and does not neccesarily reflect those of my employers