Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: A proposal ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 12 Topic 9563 of 9830
Post > Topic >>

Re: A proposal to cancel overriding the DEFAULT operator new/delete

by Francis Glassborow <francis.glassborow@[EMAIL PROTECTED] > Apr 30, 2008 at 10:16 PM

xu****wei wrote:
> On 5朁, 上午12旁ˆ†, Francis Glassborow
> <francis.glassbo...@[EMAIL PROTECTED]
> wrote:
>> xu****wei wrote:
>>> I have another suggestion about memory management of ISO C++. I think
>>> it is very IM****TANT. And I hope it can be discussed in C++0x.
>> Forget it, it won't happen. Even if the Standards' Committees were not
>> in the final stages of developing C++0x it would still not happen
>> because your proposal gratuitously breaks existing code.
>>
> 
> I don't agree that my proposal breaks existing code.
Well you are  entitled to your view but I doubt that it would be shared
by those responsible for drafting C++0x

The compilers of C
> ++0x have a lot of ways to solve this. For example, the compilers can
> skip overriding operator new/delete and use the default
> implementation. 

I.e. ignore the programmers wishes. That is breaking code.

And they can give a warning that reminds programmers
> to eliminate useless codes.

Useless code? Well it wasn't till your proposal changed the rules.

 Why do I think to cancel overriding the
> DEFAULT operator new/delete is possible? Because overriding the
> DEFAULT operator new/delete only change the implementation, not the
> semantic (the concept). If implementations changes the semantic of
> DEFAULT operator new/delete, they are bad code indeed.
No, you are mistaken. Semantic refers to behaviour and overriding
operator new/operator delete is used for such things as detecting memory
leaks. I.e. it has the same behaviour + some extra.


-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 12 Posts in Topic:
A proposal to cancel overriding the DEFAULT operator new/delete
xushiwei <xushiweizh@[  2008-04-30 04:13:22 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Tony Delroy <tony_in_d  2008-04-30 10:27:26 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Francis Glassborow <fr  2008-04-30 10:28:10 
Re: A proposal to cancel overriding the DEFAULT operator new/del
xushiwei <xushiweizh@[  2008-04-30 17:02:45 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Tony Delroy <tony_in_d  2008-04-30 22:16:45 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Francis Glassborow <fr  2008-04-30 22:16:29 
Re: A proposal to cancel overriding the DEFAULT operator new/del
xushiwei <xushiweizh@[  2008-05-02 13:02:22 
Re: A proposal to cancel overriding the DEFAULT operator new/del
xushiwei <xushiweizh@[  2008-05-02 13:01:37 
Re: A proposal to cancel overriding the DEFAULT operator new/del
"Stephen Howe"   2008-05-03 06:13:29 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Francis Glassborow <fr  2008-05-03 16:09:49 
Re: A proposal to cancel overriding the DEFAULT operator new/del
Alberto Ganesh Barbati &l  2008-05-04 17:17:09 
Re: A proposal to cancel overriding the DEFAULT operator new/del
dizzy <dizzy@[EMAIL PR  2008-05-05 07:13:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 15:44:07 CDT 2008.