Thread overview
[Issue 23812] ImportC: allow adding function attributes to imported C functions
5 days ago
ponce
September 04
https://issues.dlang.org/show_bug.cgi?id=23812

Steven Schveighoffer <schveiguy@gmail.com> changed:

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

--- Comment #1 from Steven Schveighoffer <schveiguy@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.

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

johanengelen@weka.io changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry
                 CC|                            |johanengelen@weka.io

--
5 days ago
https://issues.dlang.org/show_bug.cgi?id=23812

ponce <aliloko@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aliloko@gmail.com

--- Comment #2 from ponce <aliloko@gmail.com> ---
I've translated a fair share of C and AFAIK they all could be `nothrow @nogc`.

--