Implicit @Safe Resources

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Sep 3 16:11:15 UTC 2023


On 04/09/2023 2:42 AM, Menshikov wrote:
> ABI doesn't work that way, alignment happens over a larger field in the 
> structure.

Yeah that's fine.

In practice you're not saving anything by going below the size of a 
pointer and even if that wasn't a concern it'll align if you add more 
fields.

Memory allocators can't allocate memory below the size of a pointer due 
to needing data structures like freelists.


More information about the Digitalmars-d mailing list