ImportC and nothrow/@nogc?

Walter Bright newshound2 at digitalmars.com
Tue Aug 27 22:08:41 UTC 2024


On 8/26/2024 10:54 PM, Manu wrote:
> The whole point of ImportC, is to use the API.

Initially, yes. But the mission creep has already happened, and why not?

> And if someone does a binary-back-door... who cares? That's called a BUG. 
> They're playing with fire already! C doesn't have any such type safety, and they 
> shouldn't expect it to.
> They know what they did; they did it intentionally, surely knew what the risk 
> factors were, and they are naturally expected to not write such bugs into their 
> program.

The author of the C code likely has no idea that the caller from D exists let 
alone that it would require that the C code not call any D functions.


More information about the Digitalmars-d mailing list