comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: Attempting to modify a function result
Date: 1999/07/26
Date: 1999-07-26T00:00:00+00:00	[thread overview]
Message-ID: <379CC450.12F5889@averstar.com> (raw)
In-Reply-To: 37976216.7454C725@mitre.org

Robert I. Eachus wrote:
> 
> "Raymond C. Rawa" wrote:
> 
> > I've encountered a "feature" of Ada83 or the VADS compiler that I don't
> > understand.
> 
>    It is a feature of Ada, not just VADS.

Huh?  This is definitely a VADS bug.  Unless the function is returning
an access value, you can't use it on the left-hand-side of an
assignment.  If it returns an access value, then Display.A is
equivalent to Display.all.A, and again the value returned by the
function call is not being changed, but rather the record it
points at.
 
>                                         Robert I. Eachus
> 
> with Standard_Disclaimer;

Presumably the Standard_Disclaimer covers this "typo"? ;-)

-Tuck
-- 
-Tucker Taft   stt@averstar.com   http://www.averstar.com/~stt/
Technical Director, Distributed IT Solutions  (www.averstar.com/tools)
AverStar (formerly Intermetrics, Inc.)   Burlington, MA  USA




  parent reply	other threads:[~1999-07-26  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-22  0:00 Attempting to modify a function result Raymond C. Rawa
1999-07-22  0:00 ` Pascal MALAISE
1999-07-23  0:00   ` Raymond C. Rawa
1999-07-22  0:00 ` Robert I. Eachus
1999-07-22  0:00   ` Keith Thompson
1999-07-23  0:00     ` John Herro
1999-07-26  0:00   ` Tucker Taft [this message]
1999-07-27  0:00     ` Ehud Lamm
replies disabled

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