Reflection

Joshua Niehus jm.niehus at gmail.com
Mon Feb 27 21:56:10 PST 2012


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


More information about the Digitalmars-d-learn mailing list