template - aliasing a member function

Philippe Sigaud philippe.sigaud at gmail.com
Wed Aug 8 22:17:50 PDT 2012


On Thu, Aug 9, 2012 at 2:00 AM, Ellery Newcomer
<ellery-newcomer at utulsa.edu> wrote:

> Awesome, thanks.
>
> And to make this work with property functions (which is my real target
> case):
>
>     pragma(msg, FunctionTypeOf!(Overloads[0]));  // prints @property int()
>     pragma(msg, FunctionTypeOf!(Overloads[1]));  // prints @property
> void(int)

Ellery, you might be interesting in reading sections 20.4-20.8 from a
tutorial on templates you can get there:

 github.com/PhilippeSigaud/D-templates-tutorial

Download the pdf.

(is it me or github is down?)


More information about the Digitalmars-d-learn mailing list