DIP10005: Dependency-Carrying Declarations is now available for community feedback
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Thu Dec 15 22:27:42 PST 2016
On 12/15/2016 1:48 PM, deadalnix wrote:
> 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.
I have a hard time seeing in practice where one would ever find it not necessary
to parse for symbols. Note that 'object' is implicitly imported, so just using
'size_t' means every top level import has to be parsed.
> Symbol are analyzed on demand when they are used.
I agree that is not breaking and actually is something I've planned to implement
in dmd for a while.
More information about the Digitalmars-d
mailing list