From: James Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Strings initialised by literals
Date: Sun, 22 Jul 2001 00:52:47 GMT
Date: 2001-07-22T00:52:47+00:00 [thread overview]
Message-ID: <3B5A2478.460CC8B6@worldnet.att.net> (raw)
In-Reply-To: 87elra9kiu.fsf@chiark.greenend.org.uk
This is guaranteed by the language.
The string type is defined as :
type string is array(Positive range <>) of character;
Jim Rogers
Colorado Springs, Colorado
Matthew Woodcraft wrote:
>
> I've a feeling this question came across this newsgroup recently, but
> I've been unable to find the thread.
>
> If I write
>
> Sample : String := "example";
>
> Gnat tells me that Sample'First is 1. Is this guaranteed by the
> langauge, or does the compiler choose?
>
> -M-
next prev parent reply other threads:[~2001-07-22 0:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-21 18:58 Strings initialised by literals Matthew Woodcraft
2001-07-22 0:52 ` James Rogers [this message]
2001-07-23 1:30 ` Tucker Taft
2001-07-23 2:45 ` James Rogers
2001-07-23 10:55 ` Larry Kilgallen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox