🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: header new

#2589
From: Steve Clamage
Date: Wed, 15 Nov 1995 21:16
31 lines
1744 bytes
In article jeh@alpha.phys.msu.su, krotoff@boy.nmd.msu.ru (Alexsander Krotoff) writes:

>In the september working paper section 18.4 (Dynamic memory management)
>
>i	Header <new> synopsis
>
>	#include <cstdlib>	// for size_t
>	^^^^^^^^^^^^^^^^^^^^
>It looks wrong. size_t must be defined in the cstdef header, not
>cstdlib.

According to the ISO C standard, size_t is defined in several headers,
one of which is <stdlib.h>, so it is not wrong to specify <cstdlib>.
But if the only definition that is required is size_t, it would
be more appropriate to include <cstddef> instead, since it has
fewer extraneous declarations.

Apart from that, it was proposed in Tokyo that no standard header
could include another (as is already the case in C). There were a
few problems discovered with that proposal, and it is still being
worked on, but some form of it may pass. In that case, this point
I expect would become moot.

---
Steve Clamage, stephen.clamage@eng.sun.com



[ 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: <48dk95$9tp@engnews1.eng.sun.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <48cv8c$jeh@alpha.phys.msu.su>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: clamage@Eng.sun.com (Steve Clamage)
Newsgroups: comp.std.c++
Subject: Re: header new
Date: 15 Nov 1995 21:16:09 GMT
Organization: Sun Microsystems Inc.
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <48dk95$9tp@engnews1.eng.sun.com>
References: <48cv8c$jeh@alpha.phys.msu.su>
Reply-To: clamage@Eng
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: taumet.eng.sun.com
Content-Length: 965
X-Lines: 27
Originator: clamage@taumet