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,15a27badd5b09d59 X-Google-Attributes: gid103376,public From: tardieu@valjean.enst.fr (Samuel Tardieu) Subject: Re: dynamic allocation Date: 1995/04/03 Message-ID: #1/1 X-Deja-AN: 100815549 references: <3loml4$98v@erinews.ericsson.se> to: ehsjony@ehs.ericsson.se (Jonas Nygren) content-type: text/plain; charset=iso-8859-1 organization: TELECOM Paris mime-version: 1.0 reply-to: sam@inf.enst.fr newsgroups: comp.lang.ada Date: 1995-04-03T00:00:00+00:00 List-Id: >>>>> "Jonas" == Jonas Nygren writes: Jonas> Some short questions: Some short answers. Jonas> Does Ada95 have dynamic memory allocation/deallocation Jonas> primitives builtin to the language - cf. C++'s new and delete? Yes it does. They are called 'new' and 'Unchecked_Dellocation'. Jonas> Does Ada95 have functionality comparable with C++'s Jonas> constructors and destructors? Yes it does. You have to make your objects child of 'Controlled' or 'Limited_Controlled'. Jonas> Does Ada95 support garbage collection? Ada95 is allowed to do garbage collection, but I think that's not mandatory. Sam -- "La cervelle des petits enfants, ca doit avoir comme un petit gout de noisette" Charles Baudelaire