std.signals: Error: static assert: "Aliases to mutable thread-local data not allowed."

Bagomot bagomot at gmail.com
Mon Jul 18 10:22:16 UTC 2022


Why can't I do it with `std.signals`? How the to do it if I can't 
create static event listeners?
```d
public void addEventListener(T : EventListener)(T listener) {
    connect(&listener.watch);
}
```


More information about the Digitalmars-d-learn mailing list