DIP10005: Dependency-Carrying Declarations is now available for community feedback

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 15 13:48:45 PST 2016


On Thursday, 15 December 2016 at 16:11:56 UTC, Walter Bright 
wrote:
> That would be a massive breaking change.

SDC do parse the module only when an identifier resolution reach 
top level, and then populate the module's top level symbol table 
without running any semantic analysis on any of its symbols.

Symbol are analyzed on demand when they are used. I think this 
achieve something close enough to what Andrei was proposing and 
is not breaking.

You may also want to look at 
https://www.youtube.com/watch?v=b_T-eCToX1I to see what clang's 
up to.


More information about the Digitalmars-d mailing list