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.

  • question fred via Digitalmars-d-learn
    • Re: question Basile B. via Digitalmars-d-learn
    • Re: question Adam D Ruppe via Digitalmars-d-learn

Reply via email to