comp.lang.ada
 help / color / mirror / Atom feed
From: Erlo Haugen <_elh_@_tema_._com_>
Subject: Re: types and non-contigous ranges
Date: Fri, 27 Feb 2004 08:55:00 +0100
Date: 2004-02-27T08:55:00+01:00	[thread overview]
Message-ID: <403ef7ec$0$128$edfadb0f@dread11.news.tele.dk> (raw)
In-Reply-To: <plk72996sl.fsf@sparre.crs4.it>

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




  reply	other threads:[~2004-02-27  7:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-26 14:17 types and non-contigous ranges Erlo Haugen
2004-02-26 15:52 ` Jacob Sparre Andersen
2004-02-27  7:55   ` Erlo Haugen [this message]
2004-02-27 13:00     ` Jacob Sparre Andersen
2004-02-27 13:21       ` Erlo Haugen
2004-02-27 13:58         ` Character encoding (Was: types and non-contigous ranges) Jacob Sparre Andersen
2004-02-26 16:07 ` types and non-contigous ranges Dmitry A. Kazakov
2004-02-27  7:53   ` Erlo Haugen
2004-02-27 23:59     ` Randy Brukardt
2004-03-01  8:50       ` Erlo Haugen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox