🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: new syntax for new operator

#2781
From: Steve Clamage
Date: Thu, 30 Nov 1995 19:02
27 lines
1556 bytes
In article 100000@zorglub.cae.ca, dak <pierreba@poster.cae.ca> writes:

>class A
>{
>	public:
>		// default new for static variables.
>		static void operator new ( void *, size_t );
>		// overloaded new for static variables.
>		static void operator new ( void *, size_t, int a, int b );
>		// delete for static variables.
>		static void operator delete ( void *, size_t );

At present, member functions "operator new" and "operator delete" are in
fact static member functions. As such, they may (but need not) be declared
explicitly with the keyword "static".

The proposed change would break existing programs which chose to use the
keyword "static" for member operator new and delete.

---
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: <49kuvj$ha9@engnews1.eng.sun.com>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <Pine.A32.3.91.951130114452.18134A-100000@zorglub.cae.ca>

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: new syntax for new operator
Date: 30 Nov 1995 19:02:37 GMT
Organization: Sun Microsystems Inc.
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <49kuvj$ha9@engnews1.eng.sun.com>
References: <Pine.A32.3.91.951130114452.18134A-100000@zorglub.cae.ca>
Reply-To: clamage@Eng
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: taumet.eng.sun.com
Content-Length: 737
X-Lines: 23
Originator: clamage@taumet