ugly and/or useless features in the language.

Mike Parker aldacron at gmail.com
Sun May 23 15:02:47 UTC 2021


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/


More information about the Digitalmars-d-learn mailing list