Regarding: import "foo.h";
Jacob Carlborg
doob at me.com
Wed Jul 17 23:35:19 PDT 2013
On 2013-07-18 01:53, Brad Roberts wrote:
> 6. the time cost of parsing/semanticing c/c++ is significantly higher
> than D, making .h importing dwarf the rest of the cost of the
> compilation process
>
> 7. .h files are roughly static so translating them on each compilation
> unit is wasteful, generate once as part of the build process and update
> only as needed. This is stuff that build processes are good at.
Yeah, that's true. This year Clang has got support for modules.
Basically a better and safe(er) version of percompiled headers.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list