digitalmars.D.learn - linker aliases to carry dlang attributes for externs
- Bruce Carneal (5/5) Apr 12 2020 Could dlang compilers emit aliases for extern(C) and extern(C++)
- Bruce Carneal (2/8) Apr 12 2020 ABI, not API.
Could dlang compilers emit aliases for extern(C) and extern(C++) routines that would carry dlang specific information? ( safe, nogc, nothrow, ...) I'm thinking two symbols. The first as per normal C/C++, and the second as per normal dlang with a "use API {C, C++, ...}" suffix.
Apr 12 2020
On Sunday, 12 April 2020 at 23:14:42 UTC, Bruce Carneal wrote:Could dlang compilers emit aliases for extern(C) and extern(C++) routines that would carry dlang specific information? ( safe, nogc, nothrow, ...) I'm thinking two symbols. The first as per normal C/C++, and the second as per normal dlang with a "use API {C, C++, ...}" suffix.ABI, not API.
Apr 12 2020