Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] ::delete and deleting destructors


  • To: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Subject: Re: [cxx-abi-dev] ::delete and deleting destructors
  • From: Jason Merrill <jason@xxxxxxxxxx>
  • Date: Wed, 05 Sep 2007 14:48:12 -0400

Mark Mitchell wrote:
Why can't the code generated by the compiler for "::delete x", where "x"
 is of type "X", a dynamic class, be:

  // Get the virtual table.
  vtbl = *x;
  // Adjust by the offset-to-top.
  p = x + vtbl[-2];

Good point, I'll do that.

Jason