More issues

Christophe de Dinechin ddd at cup.hp.com
Mon Jan 31 19:01:51 UTC 2000


Jason Merrill wrote:
> 
> More things we should decide on:
> 
> How constructors/destructors are run for arrays.  Many compilers use a
> __vec_new function; g++ doesn't, to allow for inlining of constructors.
> 
> Return values of constructors.  I don't see any reason to return a value
> from constructors, since we will always pass in the address of the object.
> g++ currently returns that address, for historical reasons (previously, to
> support assignment to 'this').
> 
> Jason

We need it if we have an entry point calling operator new. For:

	C* c = new C;

if there is no C::operator new, we will do something like:

	C* c = __ct__1C.entry1

In that case, we need the returned value.


Christophe




More information about the cxx-abi-dev mailing list