Exactly Replicating a Function's Signature?
%u
wfunction at hotmail.com
Tue Jan 18 21:49:23 PST 2011
If I have an alias F that represents a function, is there any way for me to
create a function func() whose signature is exactly the same as that of F?
This includes parameter types, return types, and any/all storage modifiers
(e.g. const, lazy, scope, etc.).
Without this capability, it's impossible to perform perfect generic
redirection for functions that pass arguments by reference or in a lazy
fashion, right?
More information about the Digitalmars-d-learn
mailing list