(How) can reflection recoginzie `extern` variables?
Salih Dincer
salihdb at hotmail.com
Fri Oct 11 17:58:00 UTC 2024
On Friday, 11 October 2024 at 16:33:55 UTC, Quirin Schroll wrote:
> ```d
> extern int x;
> /****/ int y;
> ```
>
> (How) can I get the information that `x` is `extern` and `y` is
> not? There seems to be no `__traits` for it.
There is no __traits mechanism to directly determine whether a
symbol is extern. However, the extern linkage is determined at
compile time based on how the symbol is defined, and the type of
linkage it uses is determined by the compiler.
SDB at 79
More information about the Digitalmars-d-learn
mailing list