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,345a8b767542016e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-18 13:46:19 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: memory leakages with Ada? Date: 18 Mar 2002 15:45:58 -0600 Organization: LJK Software Message-ID: References: <3c90af1e@news.starhub.net.sg> <3c91bfa3.1987537@news.demon.co.uk> <3C9629E3.8030109@home.com> <3C9645DD.4020006@mail.com> <3C9659B6.6030204@mail.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1016487967 13520 192.135.80.34 (18 Mar 2002 21:46:07 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 18 Mar 2002 21:46:07 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:21427 Date: 2002-03-18T15:45:58-06:00 List-Id: In article <3C9659B6.6030204@mail.com>, Hyman Rosen writes: > Larry Kilgallen wrote: >>>>declare >>>> UC : String := Uppercase("Take that!"); > > >> Construction of the variable-size array in the frame of the >> caller is what is done by the portion of Warren's post shown >> above. > > Sure, but I have to assume that the value constructed in the > called routine then needs to be copied to the callers frame > instead of being constructed in place. I don't see how this > can be otherwise using a conventional stack, unless you don't > pop the stack after a call, which would blow the stack away > if you had the call in a loop. That code snippet _is_ in the caller's frame. Uppercase is the function being called. The bytes do get copied (obviously) to the caller's frame, but what you see above is the entire syntax for doing that.