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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no 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 23:31:30 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed.icl.net!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: memory leakages with Ada? Date: Mon, 18 Mar 2002 17:18:32 -0500 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3c90af1e@news.starhub.net.sg> <3c91bfa3.1987537@news.demon.co.uk> <3C9629E3.8030109@home.com> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1016489913 3108 136.170.200.133 (18 Mar 2002 22:18:33 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 18 Mar 2002 22:18:33 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:21442 Date: 2002-03-18T22:18:33+00:00 List-Id: Excellent examples. That's the kind of thing I had in mind. I don't object to relying on dynamic allocation for the more sophisticated things like building data structures, but I'd prefer not to do it for the routine stuff that has to happen all over the code. This is why I suggest that C tempts fate with respect to memory leaks because stylistically, you just have to do more memory management in so many more cases. You *can* do similar things in Ada if so inclined. Nothing stops you from doing some version of "new String..." and keeping pointers to everything & using them for all your referencing of data. Its just that most of the time you don't have to and that leads to fewer stupid programming errors. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Warren W. Gay VE3WWG" wrote in message news:3C9629E3.8030109@home.com... > > This was actually one of my first observations when I started learning Ada95. > A C function does not have a simple way to return a string (a few basic