I get this error: Error: undefined identifier emit
, did you mean function exit
?
Thread overview | |||||
---|---|---|---|---|---|
|
December 30, 2021 std.signals: Why emit() not extist? | ||||
---|---|---|---|---|
| ||||
December 30, 2021 Re: std.signals: Why emit() not extist? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | On Thursday, 30 December 2021 at 19:13:10 UTC, Marcone wrote: >I get this error: Error: undefined identifier Did you — Bastiaan. |
December 30, 2021 Re: std.signals: Why emit() not extist? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marcone | 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();
|
Copyright © 1999-2021 by the D Language Foundation