On Wednesday, 15 December 2021 at 21:30:47 UTC, Tim wrote:
It seems to work if var is additionally static:

Ha, it works indeed!

```cpp
extern export __gshared static int var;
```

That's a declaration worthy of C++ ! Fewer keywords would be too usable :D

Joking aside, I understood the docs such that `__gshared` actually *is* `static` in D, no? Also why the `export` when it's an extern variable?


Reply via email to