[Issue 15587] Enable use of D keywords as identifiers when interfacing to C/C++

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 22 00:16:31 PST 2016


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

--- Comment #1 from Sobirari Muhomori <dfj1esp02 at sneakemail.com> ---
Another option:
extern (C++) int __symbol__with();
And let C++ mangler recognize and remove the __symbol__ prefix.

Choose your naming convention:
alias with_ = __symbol__with;
alias _with = __symbol__with;
alias _with_ = __symbol__with;
alias With = __symbol__with;

--


More information about the Digitalmars-d-bugs mailing list