Article View: comp.std.c++
Article #2738Re: Array Initialization
From: Steve Clamage
Date: Mon, 27 Nov 1995 15:59
Date: Mon, 27 Nov 1995 15:59
26 lines
1831 bytes
1831 bytes
In article <9532616.4242@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU
(Fergus Henderson) writes:
[Concerning variable length arrays, and the compiler actually
implementing them on the heap...]
|> I don't think the standard would need to say that. An implementation
|> is already allowed to allocate whole stack frames on the heap if it
|> wants. The standard should only specify the observable effects;
|> how various language constructs are implemented should be up to
|> the implementation.
Well, in C++, calling operator new() (or operator[] new()) is an
observable effect. It should be clear that using these operators
is/is not allowed. (It really doesn't matter which, as long as it is
clear.)
--
James Kanze Tel.: (+33) 88 14 49 00 email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
Conseils, études et réalisations en logiciel orienté objet --
-- A la recherche d'une activité dans une region francophone
[ 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:
<49cn88$gp1@engnews1.eng.sun.com>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<30B1CB7E.41C67EA6@ecid.cig.mot.com> <48t9t7$5c2@engnews1.eng.sun.com> <9532616.4242@mulga.cs.mu.OZ.AU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: clamage@taumet.eng.sun.com (Steve Clamage) Newsgroups: comp.std.c++ Subject: Re: Array Initialization Date: 27 Nov 1995 15:59:04 GMT Organization: ? Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <49cn88$gp1@engnews1.eng.sun.com> References: <30B1CB7E.41C67EA6@ecid.cig.mot.com> <48t9t7$5c2@engnews1.eng.sun.com> <9532616.4242@mulga.cs.mu.OZ.AU> NNTP-Posting-Host: taumet.eng.sun.com Content-Type: text In-Reply-To: fjh@munta.cs.mu.OZ.AU's message of 23 Nov 95 00:01:30 GMT Content-Length: 1006 X-Lines: 22