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: a07f3367d7,e447f17ef3e0aaf3 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.105.2 with SMTP id gi2mr1178036wib.4.1344262935834; Mon, 06 Aug 2012 07:22:15 -0700 (PDT) Received: by 10.66.88.168 with SMTP id bh8mr1085676pab.10.1344262834216; Mon, 06 Aug 2012 07:20:34 -0700 (PDT) Path: n2ni69501013win.0!nntp.google.com!7no2119284wig.0!news-out.google.com!p10ni23457278pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!novia!feeder3.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!94.232.116.11.MISMATCH!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.panservice.it!feeder.erje.net!news2.arglkargh.de!news.musoftware.de!wum.musoftware.de!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!news.szaf.org!news.gnuher.de!news.enyo.de!.POSTED!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: Emulating placement new Date: Sun, 29 Jul 2012 20:48:01 +0200 Message-ID: <871uju5rq6.fsf@mid.deneb.enyo.de> References: <87vch67jsk.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 X-Trace: news.enyo.de 1343587680 17019 172.17.135.6 (29 Jul 2012 18:48:00 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:EAYwXp3EMbylFxLNqY5gFzt7pcA= Content-Type: text/plain; charset=us-ascii Date: 2012-07-29T20:48:01+02:00 List-Id: * Robert A. Duff: > Florian Weimer writes: > >> Is there a way to specify a storage pool (or something similar) on the >> allocator, and not on the access type? > > Ada 2012 has such a feature. Instead of: > > X := new T'(This => 123, That => 456); > > which allocates in T's storage pool, you can say: > > X := new (My_Pool) T'(This => 123, That => 456); > > which allocates in My_Pool. Interesting. But think this goes into the wrong direction. The owner pool still controls the allocation, Allocate_From_Subpool dispatches on the master pool, not the subpool. So I'd still need a special access type type inject the owner pool.