Signals & Slots
Lutger
lutger.blijdestijn at gmail.com
Mon Nov 5 11:09:42 PST 2007
Walter Bright wrote:
> Lutger wrote:
>> std.signals only accepts member functions.
>
> That is not exactly correct, it accepts delegates. Delegates are a
> superset of member functions and nested functions. std.signals is also
> thread safe.
Has it been changed then? At least the documentation states:
BUGS:
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 or a COM interface,
undefined behavior will result.
Not safe for multiple threads operating on the same signals or slots.
http://www.digitalmars.com/d/1.0/phobos/std_signals.html
More information about the Digitalmars-d
mailing list