We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df48f1 commit eebc0b6Copy full SHA for eebc0b6
spec/pragma.dd
@@ -115,6 +115,9 @@ $(H3 $(LNAME2 crtctor, $(D pragma crt_constructor)))
115
$(P Annotating a struct or class definition does not affect the members of
116
the aggregate.)
117
118
+ $(P A function that is annotated with `pragma(crt_constructor)` may initialize
119
+ `const` or `immutable` variables.)
120
+
121
$(BEST_PRACTICE Use for system programming and interfacing with C/C++,
122
for example to allow for initialization of the runtime when loading a DSO,
123
or as a simple replacement for `shared static this` in
0 commit comments