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: f5d71,d275ffeffdf83655 X-Google-Attributes: gidf5d71,public X-Google-Thread: 109fba,d275ffeffdf83655 X-Google-Attributes: gid109fba,public X-Google-Thread: 146b77,d275ffeffdf83655 X-Google-Attributes: gid146b77,public X-Google-Thread: 103376,d275ffeffdf83655 X-Google-Attributes: gid103376,public From: robert_dewar@my-dejanews.com Subject: Re: Ada vs C++ vs Java Date: 1999/01/17 Message-ID: <77t2bl$mr5$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 433647209 References: <369C1F31.AE5AF7EF@concentric.net> <369DDDC3.FDE09999@sea.ericsson.se> <369e309a.32671759@news.demon.co.uk> <369F0592.94F9DDDA@dresdner-bank.com> <77pnr4$ch3$1@newnews.global.net.uk> <36a1b97d.54731940@news.ricochet.net> X-Http-Proxy: 1.0 x15.dejanews.com:80 (Squid/1.1.22) for client 129.37.79.155 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Sun Jan 17 16:15:54 1999 GMT Newsgroups: comp.lang.ada,comp.lang.c++,comp.vxworks,comp.lang.java X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-01-17T00:00:00+00:00 List-Id: In article <36a1b97d.54731940@news.ricochet.net>, phil@ricochet.net (phil) wrote: > However, i also agree that unless you really know what > the compiler is up to, you may well be doing dynamic > allocation on the heap or the stack without actually > being aware of the fact through any sort of explicit > indication. Indeed this is a good point, and there is nothing in the C++ standard that stops the compiler from generating calls to allocate memory dynamically at any point. Of course the same could be said of C, but we have much less reason to think that a C compiler might be playing such games. Ada deals with this by providing a standardized pragma: pragma Restrictions (No_Implicit_Heap_Allocations); -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own