Calling an alias for a Class method in another scope

d coder dlang.coder at gmail.com
Fri Jun 1 07:33:07 PDT 2012


Steve

One small thing. As you said I might declare a delegate in an alternate
fashion that is by saying "void delegate() dg;".

But would it be possible to rewrite the following declaration in a way that
avoids naming foo explicitly. I would just have an alias for foo. I am
asking this to cover the cases where foo might have a list of arguments and
I want to create a delegate with the same list of arguments.

typeof(&F.init.foo) dg;


Regards
- Puneet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120601/44de28a1/attachment-0001.html>


More information about the Digitalmars-d mailing list