[Issue 16583] New: Static module ctor semantic proposition

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 3 13:52:27 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16583

          Issue ID: 16583
           Summary: Static module ctor semantic proposition
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: b2.temp at gmx.com

I propose that static module constructor/destructor would only happen without
selective import:

import stuff; // static module ctor triggerred
import stuff: Type; // static module ctor not triggerred

--


More information about the Digitalmars-d-bugs mailing list