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,2925b133078d1557 X-Google-Attributes: gid103376,public From: jsa@alexandria (Jon S Anthony) Subject: Re: Flexible Strings (was Equality operator...) Date: 1997/05/07 Message-ID: #1/1 X-Deja-AN: 240082466 Distribution: world References: <9704301422.AA07755@most> <5kocg6$hln@bcrkh13.bnr.ca> <53F35740C6EF076C.14BEEF8227919F71.39E2B6FED1F30314@library-proxy.airnews.net> Organization: PSI Public Usenet Link Newsgroups: comp.lang.ada Date: 1997-05-07T00:00:00+00:00 List-Id: In article <53F35740C6EF076C.14BEEF8227919F71.39E2B6FED1F30314@library-proxy.airnews.net> clines@delete_this.airmail.net (Kevin Cline) writes: > I was a member of ANSI X3H3 (PHIGS) for two years. I read the > Ada'83 standard cover to cover. No longer relevant. > I've read most of the C++ DWP. Perhaps there is not a lot of > difference in theory between Ada and C storage management, but there > is a huge practical difference. OK, let's hear it. > In C or C++, the application programmer can take complete control of > the allocation process in a couple of ways. In C++, new and delete > can be redefined globally or on a class-by-class basis. That's what Ada provides with storage pools. In fact, it is rather tighter as you can control the usage of the "pointer types" much more. > Additionally, the compiler vendor's implementation of malloc and > free can be replaced with one more carefully tuned to the particular > application. First this is (as you point out, but apparently promptly forget) and implementation issue and not a language issue. Second, this has been done in several Ada implementations. So, you still haven't given an example. > Although not mandated by the standard, almost all C compilers do So, again irrelevant. > link malloc and free from their run-time library, and replacement > implementations can be linked instead. Few Ada compilation systems > are so open. There is no reason whatsoever to keep you from doing this as long as you know what the link names for the alloc/dealloc for the standard pool are. Typically this will in fact be good ol' malloc/free. So, just replace them. If not, get the names and replace them. /Jon -- Jon Anthony Organon Motives, Inc. Belmont, MA 02178 617.484.3383 jsa@organon.com