comp.lang.ada
 help / color / mirror / Atom feed
From: pascalo@cln46ac.fr (Pascal OBRY)
Subject: Re: string literals
Date: 13 Jan 1995 13:31:15 GMT
Date: 1995-01-13T13:31:15+00:00	[thread overview]
Message-ID: <PASCALO.95Jan13143115@cln46ac.fr> (raw)
In-Reply-To: cary@svl.trw.com's message of 12 Jan 1995 02:07:49 GMT


Cary Jamison wrote :

>but I can't find a way to do anything like
>
>  My_String : Pkg1.Big_String(1..5) := Pkg1."Hello";
>
>other than (Pkg1.'H', Pkg1.'e', ...)

Well with Ada9x you can use a single type without do a use of the full
package.

	see use type (RM 8.4)

You should be able to write :

	use type Pkg1.Big_Char;

	My_String : Pkg1.Big_String(1..5) := "Hello";
	

I think this address your problem.

Pascal.
--

--|---------------------------------------------------------------
--| Pascal OBRY			e-mail: pascal.obry@der.edf.fr   |
--| EDF-DER-IPN-SID-ISI					         |
--| Bureau G1-010			voice: +33-1-47.65.50.91 |
--| 1 Av General de Gaulle				         |
--| 92141 Clamart CEDEX		     			         |
--| FRANCE			     			         |
--|---------------------------------------------------------------



      parent reply	other threads:[~1995-01-13 13:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cary-110195174515@macsac09.esl.com>
1995-01-12 22:21 ` string literals Robert Dewar
     [not found]   ` <D2Dnpv.41u@alsys.com>
     [not found]     ` <3fbtgk$501@gnat.cs.nyu.edu>
     [not found]       ` <3fcdf4$65n@uuneo.neosoft.com>
1995-01-16 17:30         ` Robert Dewar
1995-01-18 13:24       ` Richard G. Hash
1995-01-21  5:20         ` Robert Dewar
1995-01-21 13:09         ` Rolf Ebert
1995-01-13 13:31 ` Pascal OBRY [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