[Issue 23812] ImportC: allow adding function attributes to imported C functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Sep 4 11:44:12 UTC 2023


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

Steven Schveighoffer <schveiguy at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at gmail.com

--- Comment #1 from Steven Schveighoffer <schveiguy at gmail.com> ---
Yes, I had to remove the nogc and nothrow attributes from my project to get it
compiling with importc usage.

I think the defaults have to be as is since we don’t have negation of pure nogc
nothrow. But I agree that a pragma would suffice.

--


More information about the Digitalmars-d-bugs mailing list