question

Basile B. b2.temp at gmx.com
Wed Dec 13 13:02:42 UTC 2023


On Wednesday, 13 December 2023 at 12:49:14 UTC, fred wrote:
> [...]
> a bug ?
> thanks anyway

Try to define the flag as static

```d
static shared(bool) isDone = false;
```

I dont know if that should be a compiler error to have local 
shared (I tend to think yes as locals are specific to a frame, 
i.e a thread). At least you know how to fix the issue.



More information about the Digitalmars-d-learn mailing list