need help with vibe.d receive()
crimaniak
crimaniak at gmail.com
Tue Jan 16 16:10:21 UTC 2018
On Tuesday, 16 January 2018 at 08:54:58 UTC, Sönke Ludwig wrote:
...
> The problem is with the `immutable struct StopEvent {}`
Thanks!
...
> So, removing the `immutable` from the declaration solved the
> issue for me, but if possible I'd rather remove the
> `cast(shared Unqual!EventType)` from `emit`, and pass
> `shared`/`immutable` events to it from the outside (or plain
> events with no unshared indirections).
No, I can't remove casting here, because some other services
can't work with immutable or shared, so I just fix StopEvent type.
More information about the Digitalmars-d-learn
mailing list