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,aa968038a51ee866 X-Google-Attributes: gid103376,public From: ajaskey@gnn.com (Andy Askey) Subject: Re: Q: Ada.Unchecked_Deallocation Date: 1996/07/14 Message-ID: <4s9o6h$ro4@news-e2b.gnn.com>#1/1 X-Deja-AN: 168274055 references: <31E5D4D1.11DB36E1@jinx.sckans.edu> x-gnn-newsserver-posting-date: 14 Jul 1996 03:05:53 GMT organization: GNN newsgroups: comp.lang.ada Date: 1996-07-14T00:00:00+00:00 List-Id: David Morton wrote: >If something is created dynamically with new, is it >necessary to deallocate it with Ada.Unchecked_Deallocation, >or will it be removed from the heap space when the program >exits? From the "C" world, I've always been taught to clean >up after myself... is this necessary? It seems that usually, >"Unchecked" anything in Ada is bad... >Ada95, GNAT on Linux 2.0 >Thanks! >-- >David Morton The DEC VMS implementation of Unchecked Allocation and Deallocation is not totally unchecked. It is a generic function that will fail at compile time if the size of the memory to be created/removed is not the same as the instantiated function. I assumed other implementations would do the same. Are there totally unchecked implementations out there? -- May your karma be excellent for forgiving my spelling mishaps. Andy Askey ajaskey@gnn.com