std.signals: Why emit() not extist?

Adam D Ruppe destructionator at gmail.com
Thu Dec 30 19:51:07 UTC 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();


More information about the Digitalmars-d-learn mailing list