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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,df03e50c9b0ea255 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-26 17:26:56 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: On functions and access types. Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Thu, 27 Jun 2002 00:25:07 GMT References: NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:26729 Date: 2002-06-27T00:25:07+00:00 List-Id: Caffeine Junky writes: > Now the compiler tells me that I cannot assign to an 'in' parameter. > However, as I understand it, a function can only take an 'in' parameter. That's right. If you want a function to modify its argument, you can use an access parameter, like "S: access Stack;", and call it with Some_Stack'Access. But in this case, it's better to use a procedure. > Now, eventually I changed this to a procedure for the sake of expediancy. That's the right solution. - Bob