auto ve typeof
Türünü bulmak istediğimiz hazır değeri typeof'a vererek türünü üretebiliriz, ve o türün .stringof niteliği ile de türün ismini yazdırabiliriz:
import std.stdio; void main() { writeln(typeof(1.2).stringof); }
Çıktısı:
double