[Issue 24158] ImportC: enums created from string literal #defines don’t implicitly convert to const(char)* in D.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 19 13:42:10 UTC 2023


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

--- Comment #4 from dave287091 at gmail.com ---
So the problem is that the string literal is being treated with C semantics in
a D file, when you want it treated with D semantics as it is the result of a
preprocessor-created enum.

--


More information about the Digitalmars-d-bugs mailing list