From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2f1406ca802cdec5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!newsfeeder.syd.optusnet.com.au!news.optusnet.com.au!newsfeed.pacific.net.au!nasal.pacific.net.au!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Aliasing or referencing assignment From: David Trudgett Organization: Very little? References: Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:1kiOaIyGdjGTlcFaulJ6dI24ZMY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Sep 2005 20:33:55 +1000 NNTP-Posting-Host: 61.8.44.53 X-Complaints-To: news@pacific.net.au X-Trace: nasal.pacific.net.au 1126348706 61.8.44.53 (Sat, 10 Sep 2005 20:38:26 EST) NNTP-Posting-Date: Sat, 10 Sep 2005 20:38:26 EST Xref: g2news1.google.com comp.lang.ada:4565 Date: 2005-09-10T20:33:55+10:00 List-Id: Martin Dowie writes: > David Trudgett wrote: >> Jeffrey Carter 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)