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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fc35bf7ba6fca42d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Vinzent 'Gadget' Hoefler Newsgroups: comp.lang.ada Subject: Re: "new" word Date: Wed, 16 Mar 2005 10:30:58 +0000 Message-ID: <3297984.Y1VDRVLb6y@jellix.jlfencey.com> References: <1110966980.482176.111570@f14g2000cwb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net Y2Skjz8i1nDWma7cxKi7xQGPQcX6odRBFhxQ5YpnDCuFfiWO2I X-Phone: +41 62 961 13 52 X-Mood: Beautiful day to take over the world. Xref: g2news1.google.com comp.lang.ada:9465 Date: 2005-03-16T10:30:58+00:00 List-Id: fabio de francesco wrote: > While reading "the big online book of Linux Ada programming", by Ken ^^^^^^^^^^^^^^^^^^^^^ > "Usually you allocate memory with the Ada new statement. Where does > new get its memory? It uses the standard C library's malloc function." > > Does really Ada use Libc to implement "new"? Is it true? On Linux it is probably the sanest thing to do. The library is available and used by virtually every single program (so it is tested, and thus the bug rate can assumed to be quite low), so why should one write an Ada specific memory allocator that - in the end - would do exactly the same thing as the already available and widely used one does? > It seems absurd to me. I don't understand why Ada should depend on a C > standard library. It is not Ada (as in language) depending on it, it is a specific implementation of Ada (as in runtime) that depends on it. Vinzent. -- worst case: The wrong assumption there actually is one.