ImportC and nothrow/@nogc?
Manu
turkeyman at gmail.com
Sat Aug 24 17:15:55 UTC 2024
On Sat, 24 Aug 2024 at 12:28, Walter Bright via Digitalmars-d <
digitalmars-d at puremagic.com> wrote:
> Another approach is to compile the .c file with the -di flag, which will
> translate the C code to D code and emit it into .di file. It doesn't do
> this
> perfectly, but usually gets it good enough that any rough edges can be
> edited
> and fixed.
>
> Then you can add @nogc and nothrow.
>
*sigh* ... I'm not going to do that.
ImportC either works, or it doesn't... and it currently doesn't work, and
I'm just going to move on.
By far the easiest and least ridiculous feeling thing can do right now is
to just prototype the occasional C library call inline immediately before
the call, which is what I've moved on with.
Fortunately my call volume is low.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20240825/b4b0897a/attachment.htm>
More information about the Digitalmars-d
mailing list