Changing behavior of associative array

Julian Fondren julian.fondren at gmail.com
Sun Dec 17 00:22:01 UTC 2023


On Sunday, 17 December 2023 at 00:10:56 UTC, Kevin Bailey wrote:
> instead it seems like 'm' is a pointer to a std::map, that is 
> initialized on use if null. (I think it's that latter part that 
> gives the illusion of being already initialized.)

Yes: 
https://dlang.org/spec/hash-map.html#construction_and_ref_semantic


More information about the Digitalmars-d-learn mailing list