comp.lang.ada
 help / color / mirror / Atom feed
From: David Trudgett <wpower@zeta.org.au.nospamplease>
Subject: Re: Aliasing or referencing assignment
Date: Sat, 10 Sep 2005 17:38:14 +1000
Date: 2005-09-10T17:38:14+10:00	[thread overview]
Message-ID: <m364t9id95.fsf@rr.trudgett> (raw)
In-Reply-To: P1iUe.1$uK2.0@dfw-service2.ext.ray.com

Jeffrey Carter <spam@spam.com> writes:

> David Trudgett wrote:
>> Also, is the 'To_Unbounded_String("this is a string")' really
>> necessary? I thought I read in the ARM that string literals were
>> defined for all the string types.
>
> String literals are defined for all string types. However,
> Unbounded_String is not a string type. A string type is a
> one-dimensional array with components of a character
> type. Unbounded_String is a private type.

Well that explains that little mystery, then. I just didn't want to be
using all those "To_Unbounded_String" calls if I could avoid them. I
suppose they get optimised away in the actual object code, though.

Thanks for that.

Cheers,

David



-- 

David Trudgett
http://www.zeta.org.au/~wpower/

A person cannot support the policies of the Bush administration
unless said person is lacking in either intelligence or decency -- or,
in the case of Bush himself, both. "I just didn't know" simply doesn't
cut it when your proclaimed ignorance is based on lies that are an
insult to the intelligence of a child.

    -- David McGowan, April 2003. 
       http://davesweb.cnchost.com/nwsltr34.html



  reply	other threads:[~2005-09-10  7:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-09  0:20 Aliasing or referencing assignment David Trudgett
2005-09-09  2:13 ` Steve
2005-09-09  7:33   ` David Trudgett
2005-09-09 15:40 ` Jeffrey Carter
2005-09-10  7:38   ` David Trudgett [this message]
2005-09-10 10:01     ` Martin Dowie
2005-09-10 10:33       ` David Trudgett
2005-09-10 11:28         ` Ludovic Brenta
2005-09-11 20:43           ` David Trudgett
2005-09-11  3:20         ` Jeffrey R. Carter
replies disabled

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