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

--- Comment #3 from Walter Bright <[email protected]> ---
The problem is that C code is not always representable as D code. D doesn't
have anonymous enum types, for example, which I'm pretty sure is the cause of
the seg fault.

One reason for ImportC is it enables the D compiler to accommodate exact C
semantics. The D compiler can import a C file, and use its declarations
directly. If the C file was converted to a .di file, then the D compiler can
import the .di file and use its declarations directly.

Consequently, there should be no need to covert a C file to a .di file.

--

Reply via email to