Idea: Ownership & lifetime escape analysis by variables in reference to

rikki cattermole rikki at cattermole.co.nz
Sun May 29 09:21:16 UTC 2022


On 29/05/2022 9:04 PM, Ola Fosheim Grøstad wrote:
> On Sunday, 29 May 2022 at 08:52:55 UTC, rikki cattermole wrote:
>> We need to go back to the drawing board it isn't archiving what it 
>> should be.
> 
> Yes, @trusted is ok when you can limit it to some specific module/class, 
> but if you end up sprinkling it around then there is no point to @safe 
> anymore.

Worse of all, you end up missing all of the things @safe can actually catch.

Unless its a wrapper around actual logic, it always worries me that I 
haven't got that extra guard each time I have to add it.


More information about the Digitalmars-d mailing list