Store any callable in an array

wjoe none at
Fri May 4 15:36:29 UTC 2018

I have a class that I want to be able to register callbacks and 
I'd like to be able to register any callable - functions, 
delegates, lambdas, anything.

Is there another way to do it besides converting those 
toDelegate, which states a bug with @safe functions?

Or better store each type in their own array ?


More information about the Digitalmars-d-learn mailing list