www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23535] New: extend pragma(crt_constructor) with semantics

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

          Issue ID: 23535
           Summary: extend pragma(crt_constructor) with semantics that
                    static constructors have
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

pragma(crt_constructor) should be improved to:

1. make the default linkage "C"

2. allow modification of immutable variables

--
Dec 02 2022