So how do you create an associative array with an immutable value, anyways?
Steven Schveighoffer
schveiguy at gmail.com
Fri Oct 7 20:04:48 UTC 2022
On 10/7/22 3:20 PM, FeepingCreature wrote:
>
> Yeah, if I could get the associative array to give me a pointer to an
> uninitialized value for a key, that would do it, I think.
Have you looked at the implementation for require? That's exactly what
it does.
For reference:
https://github.com/dlang/dmd/blob/f4c21ccd6a73fee7abdea39cc38e8c64b627ffe1/druntime/src/object.d#L3457
-Steve
More information about the Digitalmars-d
mailing list