Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 13, 2017 [Issue 17972] __traits(getLinkage) doesn't work for classes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17972 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |razvan.nitu1305@gmail.com --- Comment #1 from RazvanN <razvan.nitu1305@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. -- |
November 17, 2017 [Issue 17972] __traits(getLinkage) doesn't work for classes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17972 --- Comment #2 from Jacob Carlborg <doob@me.com> --- What about using the existing fields in ClassDeclaration: "cpp", "objc" and so on [1]? I know it's not exactly the same. [1] https://github.com/dlang/dmd/blob/master/src/ddmd/dclass.d#L215-L218 -- |
April 30, 2018 [Issue 17972] __traits(getLinkage) doesn't work for classes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17972 Manu <turkeyman@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |C++ CC| |turkeyman@gmail.com OS|Mac OS X |All --- Comment #3 from Manu <turkeyman@gmail.com> --- I've just run into this issue. I was trying to fix `destroy()` not working on C++ classes, and quickly realised I needed a reliable way to detect C++ classes! So, we can't fix destroy() until we have this, or an alternative accepted solution... -- |
June 14, 2018 [Issue 17972] __traits(getLinkage) doesn't work for classes | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17972 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from RazvanN <razvan.nitu1305@gmail.com> --- Fixed by : https://github.com/dlang/dmd/pull/8224 https://github.com/dlang/dmd/pull/8336 -- |
Copyright © 1999-2021 by the D Language Foundation