[Issue 17972] __traits(getLinkage) doesn't work for classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 13 08:56:44 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17972

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
This is a bit complicated since you cannot get the linkage directly for
aggregate declarations. The only way to obtain it is to visit the AST and
search for LinkDeclarations that point out to the class/struct of interest. I
wonder why structs and classes don't have a linkage property.

--


More information about the Digitalmars-d-bugs mailing list