Check for presence of function

Dicebot public at dicebot.lv
Sun Mar 23 06:23:56 PDT 2014


On Sunday, 23 March 2014 at 13:03:07 UTC, Adam D. Ruppe wrote:
> That won't necessarily work in the presence of overloaded 
> functions since getMember only gets one of them.

Yeah, forgot to add this part, will make end result a bit less 
pretty indeed.

Updated version with overloads will be more reliable than 
proposed duck-typing version as it won't false trigger in 
presence of "alias this" or opDispatch. Though Steve may actually 
want it to trigger, I don't know.


More information about the Digitalmars-d-learn mailing list