Hi Sean,
This does look messy at best. The best way of ensuring that this doesn't
get forgotten about would be to open a Bugzilla report. The best way to
make sure it gets changed would be to attach a patch to that report. :)
Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 905-413-3519, T/L 969-3519
E-mail: [EMAIL PROTECTED]
Sean Kelly
<[EMAIL PROTECTED]> To: [EMAIL PROTECTED]
Sent by: Sean cc:
Kelly Subject: Re: 'this' used in base
member initializer list
<[EMAIL PROTECTED]>
09/29/2003 11:49
PM
Please respond to
xerces-c-dev
On Mon, 29 Sep 2003 [EMAIL PROTECTED] wrote:
>
> Can you provide a reference to the part of the standard that supports
your
> statement? I believe the 'this' pointer can be used in the
> mem-initializer, as per 12.6.7 and 12.6.8 (which seem to contradict your
> statement).
Oops! You're right. So long as the base class doesn't try to do anything
with the pointer until later it'll work just fine. I guess this is the
part where I kick myself for not checking before writing.
> However, I do think passing the 'this' pointer to another object before
the
> constructor has completed is potentially dangerous, because the callee
must
> be aware the object is not yet fully constructed.
Agreed.
Thanks,
Sean
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- 'this' used in base member initializer list Sean Kelly
- Re: 'this' used in base member initializer list david_n_bertoni
- Neil Graham
