On Borrow Checking
Walter Bright
newshound2 at digitalmars.com
Sat May 17 18:17:08 UTC 2025
On 5/17/2025 7:03 AM, Richard (Rikki) Andrew Cattermole wrote:
>> Why is safe ref counting not feasible with D?
>
> Because we don't have a borrow checker.
>
> Any kind of pointer originating from the ``this`` pointer of a RC type, must not
> outlive the RC owner.
>
> A borrow checker guarantees that the RC owner will not be modified and will
> outlive the borrow.
Yes.
More information about the Digitalmars-d
mailing list