Signals/Slots only with classes

Johann Lermer johann.lermer at elvin.eu
Sat Oct 17 16:22:39 UTC 2020


Hi everybody,

I'm just fiddling around with signals and slots and fell over 
this nasty bug:

(copied from std.signals)
"Slots can only be delegates formed from class objects or 
interfaces to class objects. If a delegate to something else is 
passed to connect(), such as a struct member function, a nested 
function, a COM interface or a closure, undefined behavior will 
result."

Is there any chance, that this bug is fixed in the near future 
ore is it something we have to live with?


More information about the Digitalmars-d mailing list