[Issue 14679] New: Parse uninstantiated generic artifacts lazily
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jun 10 17:46:06 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14679
Issue ID: 14679
Summary: Parse uninstantiated generic artifacts lazily
Product: D
Version: D2
Hardware: x86
OS: Mac OS X
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: andrei at erdani.com
Unused generics (generic functions, classes, structs, templates, and mixins)
need initially to be parsed only as balanced curlies - not even tokenized. They
get tokenized, parsed, and semantically analyzed only upon first use.
This allows libraries (such as Phobos itself) to provide functionality in
templates at virtually no cost to their users.
--
More information about the Digitalmars-d-bugs
mailing list