On Tuesday, 11 January 2022 at 21:50:00 UTC, Paul Backus wrote:
..
If you know a particular bit of code is memory safe, but the compiler can't prove it, you can mark that code as @trusted. For example:

    () @trusted { pointers ~= &str; )();

This example uses an immediately-invoked function literal [1] (also known as a "lambda") to apply the @trusted attribute to a single statement.
...

Thanks again. Really useful information.

The more I use D, the more I feel that I'm falling into a deep, deep, deep....rabbit hole.


Reply via email to