bool passed by ref, safe or not ?

Olivier Pisano olivier.pisano at laposte.net
Wed Jun 5 05:17:51 UTC 2024


On Wednesday, 5 June 2024 at 05:15:42 UTC, Olivier Pisano wrote:
>
> This is technically not a memory corruption, because as 
> bool.sizeof < int.sizeof, you just write the low order byte of 
> an int you allocated on the stack.

It was not an int, it was a ushort. Anyway, what I wrote still 
applies.


More information about the Digitalmars-d-learn mailing list