From: Mark A Biggar <mark.a.biggar@lmco.com>
Subject: Re: How to initiate part of a string?
Date: 1998/08/25
Date: 1998-08-25T00:00:00+00:00 [thread overview]
Message-ID: <35E2E5DA.E5F59382@lmco.com> (raw)
In-Reply-To: 35E171AB.75CD@ddre.dk
Hans Marqvardsen wrote:
> I have a package GLOBALS,
> containing global types and variables,
> (but no procedures or functions).
>
> package Globals is --among other things
> Txt: string (1..100);
> end Globals;
>
> Is there a clean way to specify an initial value for a slice of Txt ?
If you realy intend that the rest of the string be undefined, then you can
always do it in a package body like so:
package body Globals is
begin
Txt(1..6) := "abcdef";
end Globals;
You will also need to add a pragma Elabotate_Body; to the package
spec to keep the compiler happy (Ada 95).
--
Mark Biggar
mark.a.biggar@lmco.com
next prev parent reply other threads:[~1998-08-25 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
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 [this message]
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