Prototype of Ownership/Borrowing System for D

Walter Bright newshound2 at digitalmars.com
Wed Nov 20 22:10:25 UTC 2019


On 11/20/2019 5:46 AM, jmh530 wrote:
>  From here [1], Walter says that "OB will also be turned off in @system code." 
> But I don't see anything about @safe or @sysstem in the changelog/ob.md file.

That was the original plan, making @live an extension of @safe. But in 
implementing it, I realized it could be used as an independent attribute, and 
implemented it that way. So yes, you can use it in @system code, and I think it 
can add value to it, especially code that is a snarl of pointer allocations and 
frees.


More information about the Digitalmars-d mailing list