[Issue 23479] ImportC recognizes .i and .c files, but not .h files

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 13 17:32:22 UTC 2022


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

John Hall <john.michael.hall at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.michael.hall at gmail.com

--- Comment #5 from John Hall <john.michael.hall at gmail.com> ---
(In reply to Walter Bright from comment #2)
> There's no plan for distinguishing between <foo.h> and "foo.h". The only
> difference between them, anyway, is <foo.h> does not look in the default
> directory first.
> 
>     import dir.file;

I understand that is generally true, but ultimately implementation defined
where both of them look, at least according to stack overflow:
https://stackoverflow.com/a/3162067

The other difference is that <foo.h> looks for a header and "foo.h" looks for a
file. Apparently a header doesn't need to be a file. But I'm not enough of a C
expert to know if that matters.

--


More information about the Digitalmars-d-bugs mailing list