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,3ccb707f4c91a5f2 X-Google-Attributes: gid103376,public From: bobduff@world.std.com (Robert A Duff) Subject: Re: Why no Free? Date: 1996/10/18 Message-ID: #1/1 X-Deja-AN: 190329005 references: <325BC3B3.41C6@hso.link.com> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-10-18T00:00:00+00:00 List-Id: In article , Matthew Heaney wrote: >To the designers of Ada 95: Why didn't you throw in a Free? We would have been tarred and feathered. By the way, what is the parameter type of the argument of this procedure? Root_Access'Class? Hmm. Or is "free" a reserved word, so "free X" is a statement expecting any access type? >... Had this been >discussed? I don't think so. >... Is it a candidate for inclusion in Ada 0X? I doubt it. Probably by that time, garbage collection will be plentiful. So the original assumptions in Ada 83 (GC available, and Unchecked_Deallocation is dangerous) will be correct. And given those assumptions, the design decision to make Unchecked_Deallocation slightly painful is the right decision. - Bob