Allocator-aware @safe reference counting is still not possible

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Mon Jan 23 07:06:04 UTC 2023


On 23/01/2023 10:31 AM, Paul Backus wrote:
> Can you explain more about @localsafe? I don't understand how this is 
> different from Dukc's proposal in the linked thread.

Its @safe except you can call non-safe functions. Same goes for nogc and 
pure.

Basically it verifies that you didn't do something stupid without 
limiting what you can call (like callbacks).

This is something I've been wanting for a while now due to potential 
mistakes with creating contexts with callbacks.


More information about the Digitalmars-d mailing list