diff --git a/spec/hash-map.dd b/spec/hash-map.dd index a343d94662..2e50862dd4 100644 --- a/spec/hash-map.dd +++ b/spec/hash-map.dd @@ -337,7 +337,8 @@ $(H2 $(LNAME2 advanced_updating, Advanced updating)) $(H2 $(LNAME2 static_initialization, Static Initialization of AAs)) - NOTE: Not yet implemented. + $(P Static initalizations are supplied by a list of key value elements using + `key : value` syntax enclosed in [ ].) --------- immutable long[string] aa = [ @@ -354,6 +355,13 @@ $(H2 $(LNAME2 static_initialization, Static Initialization of AAs)) } --------- + $(P These associative arrays are statically allocated when they appear in + global scope. Otherwise, they need to be marked with const or static storage + classes to make them statically allocated associative arrays.) + + $(NOTE Statically allocated associative arrays is not currently implemented + in dmd compiler.) + $(H2 $(LNAME2 runtime_initialization, Runtime Initialization of Immutable AAs)) $(P Immutable associative arrays are often desirable, but sometimes