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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9464f7990925623f X-Google-Attributes: gid103376,public From: Pascal MALAISE Subject: Re: Attempting to modify a function result Date: 1999/07/22 Message-ID: <37976A87.87BD141D@magic.fr>#1/1 X-Deja-AN: 504120343 Content-Transfer-Encoding: 7bit References: <3797103C.4FD5@nospam.boeing.com> X-Client: Magic On Line [unknown@ppp-34.net4.magic.fr] X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@ulysse.magic.fr X-Trace: ulysse.magic.fr 932670087 1439 127.0.0.1 (22 Jul 1999 19:01:27 GMT) Organization: Itaque Mime-Version: 1.0 NNTP-Posting-Date: 22 Jul 1999 19:01:27 GMT Newsgroups: comp.lang.ada Date: 1999-07-22T19:01:27+00:00 List-Id: "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