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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,13d6cd0af0d0d769 X-Google-Attributes: gid103376,public From: Robb.Nebbe@di.epfl.ch (Robb Nebbe) Subject: Re: Does memory leak? Date: 1995/03/30 Message-ID: <1995Mar30.110137@di.epfl.ch>#1/1 X-Deja-AN: 100540653 distribution: world sender: nebbe@lglsun3.epfl.ch (Robb Nebbe) references: <3kopao$ekg@nef.ens.fr> <3kql6c$1b3@porte-de-st-ouen.ics.uci.edu> <3kuba0$8kd@gnat.cs.nyu.edu> <3l6gf6$h05@theopolis.orl.mmc.com> content-type: text/plain; charset=iso-8859-1 organization: Ecole Polytechnique Federale de Lausanne mime-version: 1.0 newsgroups: comp.lang.ada Date: 1995-03-30T00:00:00+00:00 List-Id: In article , milod@netcom.com (John DiCamillo) writes: |> Theodore Dennison writes: |> |> >I mean, if you don't deallocate what you allocate, your program will |> >leak memory no matter what language it is written in. This isn't an Ada |> >issue, it's an issue of sloppy coding. |> |> Huh? Haven't you ever worked with a garbage-collected language? |> Languages like Smalltalk allow you to allocate stuff all day, |> and they don't even have a deallocate operation; the run-time |> system figures out when the program is done with a piece of storage |> and deallocates it for you. |> Garbage collection doesn't change the fact that someone has to deallocate the memory it just changes who is responsible. In general it really isn't an issue of sloppy code; however, if the programmer is responsible then it is an issue of sloppy code. Robb Nebbe