comp.lang.ada
 help / color / mirror / Atom feed
From: aidan@skinner.demon.co.uk (Aidan Skinner)
Subject: Re: How to initiate part of a string?
Date: 1998/09/29
Date: 1998-09-29T00:00:00+00:00	[thread overview]
Message-ID: <slrn710ank.1uc.aidan@skinner.demon.co.uk> (raw)
In-Reply-To: 6uevbf$nr4$1@nnrp1.dejanews.com

On Fri, 25 Sep 1998 02:32:14 GMT, dewarr@my-dejanews.com 
<dewarr@my-dejanews.com> wrote:

>In article <360a8549.265252@SantaClara01.news.InterNex.Net>,
>  tmoran@bix.com (Tom Moran) wrote:
>> >Txt: String(1..100) := (28..31=>"abcd", Others=>' ');
>> It looks nice, but it doesn't compile.
>
>Clearly this is illegal, compare with the obviously legal
>
>   Txt: String(1..100) := (28..31=>'x', Others=>' ');
>
>Clearly these cannot both be type correct. If you expect
>the top one to compile, you don't have a precise view of
>what is going on semantically.

Would 
	Txt: String(1..100) := (28..31 => 'a','b','c','d', Others => ' ');

be a good compromise in this situation? it looks nice and keeps the
same semantics. It then opens the possibility of

	Txt: string(1..100) := (28..31 => ('a'..'d'), Others => ' ');

- Aidan
-- 
HMFC - Scottish Cup Winners 1998
http://www.skinner.demon.co.uk/aidan
http://www.gla.ac.uk/Clubs/WebSoc/~974075s/
"I don't patronise bunny rabbits"




  reply	other threads:[~1998-09-29  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-24  0:00 How to initiate part of a string? Hans Marqvardsen
1998-08-25  0:00 ` Mark A Biggar
1998-08-25  0:00 ` Tom Moran
1998-08-25  0:00   ` Samuel Tardieu
1998-08-26  0:00     ` Tom Moran
1998-08-26  0:00       ` Robert I. Eachus
1998-08-26  0:00         ` Tom Moran
1998-09-24  0:00           ` Bob Fletcher
1998-09-24  0:00             ` Tom Moran
1998-09-25  0:00               ` dewarr
1998-09-29  0:00                 ` Aidan Skinner [this message]
1998-09-19  0:00       ` dewarr
1998-08-26  0:00 ` Mats Weber
1998-08-26  0:00   ` Frank Ecke
1998-08-26  0:00 ` Frank Ecke
1998-08-26  0:00   ` Robert I. Eachus
replies disabled

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