The non-intrusive ad-hoc borrowing scheme…
Nick Treleaven
nick at geany.org
Thu Nov 14 12:49:00 UTC 2019
On Wednesday, 13 November 2019 at 12:22:12 UTC, Ola Fosheim
Grøstad wrote:
> That allows you to track borrowing during debugging/testing,
> and turn it off in release mode. You also avoid the
> inconveniences that Rust comes with.
>
> The downside is that the resulting code is only as safe as the
> testing environment ensures…
Sounds similar to my runtime-checked RCSlice idea:
https://forum.dlang.org/post/aeeffshzkfjbrejztksj@forum.dlang.org
The checks could be disabled when -boundscheck=off is used.
More information about the Digitalmars-d
mailing list