need help to check symbol is static variable or not

Dakota dakota at gmail.com
Mon Jul 15 13:13:01 UTC 2024


On Monday, 15 July 2024 at 11:16:23 UTC, Nick Treleaven wrote:
> 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?


No, I am here deal with a lot type and structs, no symbol problem 
yet.

I guess the problem cause by the subtype has a hidden pointer to 
parent.








More information about the Digitalmars-d-learn mailing list