On Sunday, 23 May 2021 at 14:13:36 UTC, Alain De Vos wrote:
This one compiles without any problem.
Maybe someone can enlighten us on the status of scope(d)-variables and dip-1000.
It is not fully clear for me.
```
import std.stdio;
void main() @trusted
{
int *q=null;
    {
        int a;
        q=&a;
    }
*q=5;
}
```

You might find this helpful:

https://dlang.org/blog/2016/09/28/how-to-write-trusted-code-in-d/

Reply via email to