looking for work-around: _d_assocarrayliteralTX segfault assigning a shared associative array an AA literal

Anonymouse zorael at gmail.com
Tue Jun 13 17:12:41 UTC 2023


On Tuesday, 13 June 2023 at 17:06:55 UTC, mw wrote:
> Does anyone know how to fix it? or any work-around?
>
>
> Thanks.

I don't know if it's *correct* or not, but I think I did this at 
the time to work around it.

```
shared string[string] aa;

void main()
{
     auto aaTemp = [ "abc" : "123" ];
     aa = cast(shared)aaTemp;
}
```


More information about the Digitalmars-d-learn mailing list