comp.lang.ada
 help / color / mirror / Atom feed
From: "Bob Fletcher" <fletcherr@logica.com>
Subject: Re: How to initiate part of a string?
Date: 1998/09/24
Date: 1998-09-24T00:00:00+00:00	[thread overview]
Message-ID: <01bde7ac$91707760$5330ea9e@UKP014459.logica.co.uk> (raw)
In-Reply-To: 35e45c89.12901035@SantaClara01.news.InterNex.Net

can't you do:

Txt: String(1..100) := (28..31=>"abcd", Others=>' ');

or am I missing the point;

Tom Moran <tmoran@bix.com> wrote in article
<35e45c89.12901035@SantaClara01.news.InterNex.Net>...
> >  Txt : String(1 .. 100) := (1 ..  27=>' ') & "abcd" & (32 .. 100=>' ');
> vs
> >    Txt : String(1 .. 100) := (1 ..  27=>' ') & "abcd" & (1 .. 69=>' ');
> The former has the advantage of less error-prone arithmetic required
> of the writer or readers of the code.
> 




  reply	other threads:[~1998-09-24  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 ` 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 [this message]
1998-09-24  0:00             ` Tom Moran
1998-09-25  0:00               ` dewarr
1998-09-29  0:00                 ` Aidan Skinner
1998-09-19  0:00       ` dewarr
1998-08-25  0:00 ` Mark A Biggar
1998-08-26  0:00 ` Frank Ecke
1998-08-26  0:00   ` Robert I. Eachus
1998-08-26  0:00 ` Mats Weber
1998-08-26  0:00   ` Frank Ecke
replies disabled

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