1 module des.flow.signal; 2 3 import des.flow.base; 4 5 /// Control signals 6 struct Signal 7 { 8 /// 9 ulong code; 10 11 pure nothrow @nogc: 12 /// 13 this( ulong code ) { this.code = code; } 14 /// 15 this( in Signal s ) { this.code = s.code; } 16 } 17 18 /// 19 interface SignalProcessor { /++ +/ void processSignal( in Signal ); } 20 21 /// 22 interface SignalBus { /++ +/ void sendSignal( in Signal ); } 23 24 unittest 25 { 26 assert( creationTest( Signal(0) ) ); 27 }