From: Warren <ve3wwg@gmail.com>
Subject: Re: type String_Type array(Integer range <>) of Character;
Date: Mon, 19 Apr 2010 15:27:53 +0000 (UTC)
Date: 2010-04-19T15:27:53+00:00 [thread overview]
Message-ID: <Xns9D5F749FF6405WarrensBlatherings@81.169.183.62> (raw)
In-Reply-To: 2dab1630-4abd-4d5b-a286-6fdbd18ce19c@b33g2000yqc.googlegroups.com
Adam Beneschan expounded in news:2dab1630-4abd-4d5b-a286-
6fdbd18ce19c@b33g2000yqc.googlegroups.com:
> You don't even need two type conversions:
>
> S : String_Type := "Abc.";
> subtype String_Subtype is String(1..S'Length);
> T : String_Subtype;
> -- T : String(1..4); -- this works too
> begin
> T := String_Subtype(S);
Even better, thanks.
Warren
prev parent reply other threads:[~2010-04-19 15:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-16 19:52 type String_Type array(Integer range <>) of Character; Warren
2010-04-16 21:09 ` stefan-lucks
2010-04-16 20:29 ` J-P. Rosen
2010-04-16 20:53 ` Charmed Snark
2010-04-16 20:56 ` Adam Beneschan
2010-04-19 15:27 ` Warren [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox