comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: Is this code legal
Date: 1999/06/12
Date: 1999-06-12T00:00:00+00:00	[thread overview]
Message-ID: <m3vhctqf5d.fsf@mheaney.ni.net> (raw)
In-Reply-To: 929221299.108.55@news.remarQ.com

On 12 Jun 1999 15:59, "Chad R. Meiners" <crmeiners@hotmail.com> wrote:

> I have fixed the code by changing the True_Buffer declaration to an
> assignment as opposed to a renaming.
>
> I was wondering such a renaming is legal in Ada 95 since True_Buffer
> is an Unbounded_String and Command_Buffer is a function.

In Ada95, functions return "constant objects" (as opposed to "values,"
which is what functions returned in Ada83), so renaming the result of a
function call should be legal.

Maybe you have an aliasing problem???  I'm not sure...

Matt







  reply	other threads:[~1999-06-12  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-12  0:00 Is this code legal Chad R. Meiners
1999-06-12  0:00 ` Matthew Heaney [this message]
1999-06-14  0:00 ` Tucker Taft
replies disabled

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