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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC 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: "Raymond C. Rawa" Subject: Re: Attempting to modify a function result Date: 1999/07/23 Message-ID: <37985A3A.4304@nospam.boeing.com>#1/1 X-Deja-AN: 504374761 Content-Transfer-Encoding: 7bit Sender: nntp@news.boeing.com (Boeing NNTP News Access) X-Nntp-Posting-Host: mac-herbert.he.boeing.com References: <3797103C.4FD5@nospam.boeing.com> <37976A87.87BD141D@magic.fr> Content-Type: text/plain; charset=us-ascii Organization: The Boeing Company Mime-Version: 1.0 Reply-To: Raymond.C.Rawa@nospam.boeing.com Newsgroups: comp.lang.ada Date: 1999-07-23T00:00:00+00:00 List-Id: Pascal MALAISE wrote: > 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. This is exactly my point. I thought that the record returned by the function would be a constant and therefore the compiler wouldn't let me make an assignment to it. At the very least, a runtime error would have been nice. --------------- Raymond C. Rawa