ImportC and nothrow/@nogc?
Steven Schveighoffer
schveiguy at gmail.com
Mon Aug 26 17:16:03 UTC 2024
On Sunday, 18 August 2024 at 04:43:34 UTC, Manu wrote:
> I just tried using ImportC for the first time ever, but I was
> surprised
> when I immediately received a sea of errors calling the C
> symbols from
> `nothrow @nogc` functions.
> My entire program is `nothrow @nogc`... I assumed ImportC would
> be
> supremely suitable in this context, but apparently not...
>
> Is there something I've missed? Is there a plan for this?
> I found just one single very short forum thread...
>
I found the same.
I'm still using ImportC on my project, temporarily as -betterC
and commenting out the `@nogc nothrow` attributes but this must
be fixed at some point.
https://issues.dlang.org/show_bug.cgi?id=23812
https://github.com/schveiguy/draylib/blob/7de20a4cd2359d4df01acc159f953aa6dbe04347/source/raylib/rtext.d#L3
-Steve
More information about the Digitalmars-d
mailing list