At the moment, the ref-ness of the return type is not determined
correctly because of a compiler bug. Otherwise, that works mostly
fine.


Thank you Max for showing me toDelegate. But I find that it does not work even for function arguments with default values. So for the moment I will trod the path Steve showed me.

Regards
- Puneet