Only one signal per object?

Andrej Mitrovic andrej.mitrovich at gmail.com
Mon Oct 24 18:36:12 PDT 2011


Yeah, if I change the two function types in Signal to this:
        alias bool delegate(ref Types) slot_t;
        alias void delegate(ref Types) void_slot_t;

then I can connect functions with ref arguments. But then I'll get
exceptions thrown if the functions have non-ref arguments.

This seems like a difficult problem to solve. How can you
(efficiently) store a dynamic list of function pointers which could
have arbitrary storage classes for its parameters? Hmm..


More information about the Digitalmars-d-learn mailing list