🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2820

Re: STL allocator spec broken?

#2820
From: Anil Vijendran
Date: Fri, 01 Dec 1995 19:21
26 lines
1428 bytes
>>>>> On 30 Nov 1995 17:52:37 GMT, martelli@cadlab.it (Alex Martelli)
said:

    Alex> 	shape *s = new(pstore) shape(pstore);

    Alex> Basically, while it _might_ perhaps be nice to have syntax sugar to
    Alex> avoid having to write pstore twice in this way, I do not think there
    Alex> is really any burning need for such sugar...

I'm not that much of syntactic-sugar guy, but tell me how you would do
this if you needed to allocate an array of objects? 

Doesn't anyone else feel there needs to be a link between the
placement-expression and the constructor? I'm curious 'cos I get the
feeling I'm missing something... 
-- 
Peace.... +<:-)

Anil


---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <xg3zqdc68nu.fsf@marsh.cacs.usl.edu>
Path: arc1-ca.pugleaf.net!usenet.kornet.nm.kr!agate!agate!Matt
References: <48leps$pv2@boogie.cs.utexas.edu> <xg3ohtwl6t0.fsf@marsh.cacs.usl.edu> <DIvAAr.IDx@cadlab.it>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!usenet.kornet.nm.kr!agate!agate!Matt
From: akv@cacs.usl.edu (Anil Vijendran)
Newsgroups: comp.std.c++
Subject: Re: STL allocator spec broken?
Date: 01 Dec 1995 19:21:14 GMT
Organization: Center for Adv Computer Studies, Univ. of Southwestern Louisiana
Approved: Matt@Austern
Message-ID: <xg3zqdc68nu.fsf@marsh.cacs.usl.edu>
References: <48leps$pv2@boogie.cs.utexas.edu>
 <xg3ohtwl6t0.fsf@marsh.cacs.usl.edu> <DIvAAr.IDx@cadlab.it>
Reply-To: akv@cacs.usl.edu
NNTP-Posting-Host: austern.hip.berkeley.edu