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 20:33:55 +1000
Date: 2005-09-10T20:33:55+10:00	[thread overview]
Message-ID: <m3irx9yzxo.fsf@rr.trudgett> (raw)
In-Reply-To: dfuatk$8ej$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com

Martin Dowie <martin.dowie@btopenworld.com> writes:

> David Trudgett wrote:
>> 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.
>
> Er, no - why would you think that?...

Without knowing the details of how they work, I was just assuming they
would be pre-elaborated during the compilation process.

David

-- 

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

Patriotism is a pernicious, psychopathic form of idiocy.

    -- George Bernard Shaw (1856-1950)



  reply	other threads:[~2005-09-10 10:33 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
2005-09-10 10:01     ` Martin Dowie
2005-09-10 10:33       ` David Trudgett [this message]
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