[Development] Disavowing the Lakos Rule for Q_ASSERT

Thiago Macieira thiago.macieira at intel.com
Tue Aug 27 04:19:53 CEST 2024


On Monday 26 August 2024 17:09:54 GMT-7 Ville Voutilainen wrote:
> I would think the callee takes over the responsibility of destroying
> the parameters when they have all been initialized
> (so that you actually end up in the callee, duh), and before that
> point the caller has to do it for cases where they don't all
> construct.

In the case where one fails to construct, sure, but then the callee hasn't 
been called yet.

My point is that in some ABIs, the callee destroys the parameters passed by 
value. This is an observable difference if the destructor may throw (which it 
may if it has a precondition).

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Principal Engineer - Intel DCAI Platform & System Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/development/attachments/20240826/5f17dbf0/attachment.bin>


More information about the Development mailing list