module pind.samples.ja.object.object_2; import std.stdio; int foo(string when) { writefln("Called during '%s'.", when); return 0; } void main() { const s = foo("sizeof").sizeof; // foo()は呼び出されない alias T = typeof(foo("typeof")); // foo()は呼び出されない auto ti = typeid(foo("typeid")); // foo()が呼び出される }