[OT] Clang seems to implement modules

Jacob Carlborg doob at me.com
Tue Nov 20 23:32:33 PST 2012


On 2012-11-21 01:41, Walter Bright wrote:

> Modules are:
>
> 1. compile a bunch of .h files into a symbol table
> 2. cache the symbol table (in memory or on disk)
> 3. read the symbol table instead of reparsing the .h files

Note that headers are only needed for backwards compatibility. Check 
slides 38-42, especially slide 42: "No headers!".

So if you start a new project with Clang and don't need backwards 
compatibility or compatibility with any other compiler/library you don't 
need headers.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list