why is the behavior of pointers to 0 width doing this?

monkyyy crazymonkyyy at gmail.com
Fri Jul 4 08:12:21 UTC 2025


```d
import std;
unittest{
	int[0] callstack;
	(&callstack).writeln;
	(&callstack+1000).writeln;
}
```

this prints the same value twice, I assume its some kind of void 
replacement, then an optimizer, then related to whatever os 
memory magic does some math.


More information about the Digitalmars-d-learn mailing list