Reflection

Timon Gehr timon.gehr at gmx.ch
Mon Feb 27 23:56:29 PST 2012


On 02/28/2012 07:27 AM, Joshua Niehus wrote:
> On Tuesday, 28 February 2012 at 06:10:11 UTC, Jesse Phillips wrote:
>> It is a template.
>
> I see, thanks.
> And I bet its not possible to figure out if a template is a "function
> template" or a "class template" etc...
>
>

You can trivially test whether the symbol is callable with some specific 
arguments, if that helps:

is(typeof(writeln(arg1,arg2,arg3)))


More information about the Digitalmars-d-learn mailing list