www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14679] New: Parse uninstantiated generic artifacts lazily

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 puremagic.com
          Reporter: andrei 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.

--
Jun 10 2015