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-Language: ENGLISH,ASCII X-Google-Thread: 103376,c1b1b81e16e83802 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-01 02:15:31 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!feed.news.nacamar.de!news.belwue.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Help-memory allocation Date: Tue, 01 Jul 2003 11:15:30 +0200 Organization: InterNetNews at News.BelWue.DE (Stuttgart, Germany) Message-ID: <87brweobf1.fsf@Login.CERT.Uni-Stuttgart.DE> References: <87y8zjvckv.fsf@deneb.enyo.de> <3f006bcf$1@epflnews.epfl.ch> NNTP-Posting-Host: login.cert.uni-stuttgart.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.BelWue.DE 1057050931 28144 129.69.16.19 (1 Jul 2003 09:15:31 GMT) X-Complaints-To: news@news.belwue.de NNTP-Posting-Date: Tue, 1 Jul 2003 09:15:31 +0000 (UTC) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3 (i386-pc-linux-gnu) Cancel-Lock: sha1:DWElYntpnNpEvvjStlhyF5EMMJY= Xref: archiver1.google.com comp.lang.ada:39950 Date: 2003-07-01T11:15:30+02:00 List-Id: Rodrigo Garc�a writes: > I do not think this is necessary. Look at the dynamic semantics of > allocators: even for uninitialized allocators, an object of the > designated subtype is created and any implicit initial value is > assigned. That is, allocation actually takes place when "new" is done. Yes, that's why commit-on-use is non-conforming. 8-) However, commit-on-use is the default on many systems (and switching to commit-on-allocate requires non-trivial modifcations on some systems), and it's the most usable configuration on almost any system, unless you run very special software.