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,FREEMAIL_FROM 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-19 17:19:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!cyclone1.gnilink.net!spamfinder.gnilink.net!nwrddc01.gnilink.net.POSTED!53ab2750!not-for-mail Message-ID: <3C97E496.20404@mail.com> From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:0.9.9) Gecko/20020311 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: memory leakages with Ada? References: <3c90af1e@news.starhub.net.sg> <3c91bfa3.1987537@news.demon.co.uk> <3C9629E3.8030109@home.com> <3C9645DD.4020006@mail.com> <3C9659B6.6030204@mail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 20 Mar 2002 01:19:37 GMT NNTP-Posting-Host: 162.83.247.83 X-Complaints-To: business-support@verizon.com X-Trace: nwrddc01.gnilink.net 1016587177 162.83.247.83 (Tue, 19 Mar 2002 20:19:37 EST) NNTP-Posting-Date: Tue, 19 Mar 2002 20:19:37 EST Xref: archiver1.google.com comp.lang.ada:21473 Date: 2002-03-20T01:19:37+00:00 List-Id: Larry Kilgallen wrote: > 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. Yes, that's exactly what I was trying to say! My point was that in the various C techniques, the bytes of the result get constructed once, and then don't have to be copied as part of the function return, whereas returning a String in Ada will involve copying the bytes.