(How) can reflection recoginzie `extern` variables?

Salih Dincer salihdb at hotmail.com
Fri Oct 11 18:17:34 UTC 2024


On Friday, 11 October 2024 at 17:58:00 UTC, Salih Dincer wrote:
> 
> There is no __traits mechanism to directly determine ...

```d
extern int x;
int y;

pragma(msg, __traits(isSame, y, x));
```

I tried it now, but as I said, it wouldn't be unreasonable:

SDB at 79




More information about the Digitalmars-d-learn mailing list