Reflection

Jesse Phillips jessekphillips+D at gmail.com
Mon Feb 27 22:10:10 PST 2012


On Tuesday, 28 February 2012 at 05:56:12 UTC, Joshua Niehus wrote:
> Hello,
>
> I dont understand the following snippet's output:
>
> import std.stdio, std.traits;
> void main() {
>     writeln(isSomeFunction!(writeln));
>     writeln(isCallable!(writeln));
>     writeln("Yes I am...");
> }
>
> /* OUTPUT */
> false
> false
> Yes I am...
>
> If 'writeln' isn't a method/function and it's not callable, 
> then what is it?
>
> Thanks,
> Josh

It is a template.


More information about the Digitalmars-d-learn mailing list