From: Pascal MALAISE <malaise@magic.fr>
Subject: Re: Attempting to modify a function result
Date: 1999/07/22
Date: 1999-07-22T19:01:27+00:00 [thread overview]
Message-ID: <37976A87.87BD141D@magic.fr> (raw)
In-Reply-To: 3797103C.4FD5@nospam.boeing.com
"Raymond C. Rawa" wrote:
> Display_Type is record
> a : integer;
> b : float;
> end record;
You mean "type Display_Type" :-)
> Display.a := 5; -- I mean't to type: The_Display.a := 5;
> The procedure Foo.Huh compiles and executes without error. As a side
> note, The_Display is unchanged by this procedure.
Well, you call the function Display which returns a object of type
Display_Type,
you change the field "a" of this object to 5.
After this instruction the returned object does not exist any longer.
--
Pascal MALAISE
(priv) mailto:malaise@magic.fr
(prof) mailto:malaise@fr.airsysatm.thomson-csf.com
next prev parent reply other threads:[~1999-07-22 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 ` Robert I. Eachus
1999-07-22 0:00 ` Keith Thompson
1999-07-23 0:00 ` John Herro
1999-07-26 0:00 ` Tucker Taft
1999-07-27 0:00 ` Ehud Lamm
1999-07-22 0:00 ` Pascal MALAISE [this message]
1999-07-23 0:00 ` Raymond C. Rawa
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox