Safety is not what you think

user1234 user1234 at 12.de
Tue Jan 30 02:05:23 UTC 2024


I want to share a stupid program to show you that D safety is 
more complex than you might think:

```d
module test;

void test() @safe
{
     int i;
     int b = (*&(*&++i))++;
}

void main() @safe
{
     test();
}
```

I'm not showing a deficiency of D, that program is undeniably 
safe ;)


More information about the Digitalmars-d-learn mailing list