So how do you create an associative array with an immutable value, anyways?
FeepingCreature
feepingcreature at gmail.com
Sat Oct 8 19:45:51 UTC 2022
On Saturday, 8 October 2022 at 17:27:58 UTC, Nick Treleaven wrote:
> On Saturday, 8 October 2022 at 17:09:39 UTC, FeepingCreature
> wrote:
>>
>> Yeah okay so it's definitely possible, but I do feel it's
>> kinda questionable to call barely documented internal
>> implementation-dependent (?) runtime functions from user
>> code...
>
>
> What's missing from the docs?
> Besides object there's also the AA docs:
> https://dlang.org/spec/hash-map.html#inserting_if_not_present
Which, again, doesn't work with immutable types...
More information about the Digitalmars-d
mailing list