On Monday, 15 July 2024 at 06:44:12 UTC, Dakota wrote:
```d
struct type_s
{

    union {
        struct
        {
            int a;
            int b;
        } c;
    };
};
```

`type c` will return false with `enum isStatic(alias V) = __traits(compiles, { enum v = V; });`

I put `type_s` in a file anonstruct.c, then:
```d
import anonstruct;

pragma(msg, isStatic!(type_s.c));
```
That outputs `false`, because the symbol is not a compile-time value. Is that what you meant?

Reply via email to