Thread overview
std.signals: Why emit() not extist?
Dec 30, 2021
Marcone
Dec 30, 2021
Bastiaan Veelo
Dec 30, 2021
Adam D Ruppe
December 30, 2021

I get this error: Error: undefined identifier emit, did you mean function exit?

December 30, 2021

On Thursday, 30 December 2021 at 19:13:10 UTC, Marcone wrote:

>

I get this error: Error: undefined identifier emit, did you mean function exit?

Did you import std.signals?

— Bastiaan.

December 30, 2021
On Thursday, 30 December 2021 at 19:13:10 UTC, Marcone wrote:
> I get this error: Error: undefined identifier `emit`, did you mean function `exit`?

You need to call it on the signal.

class A {
   mixin Signal thing;
}

A a = new A;

a.thing.emit();