Signals & Slots
Walter Bright
newshound1 at digitalmars.com
Mon Nov 5 11:39:07 PST 2007
Lutger wrote:
> 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
Oops, you're right. My mistake.
More information about the Digitalmars-d
mailing list