Is it possible to create a function that returns Type like typeof() does? Something such as:Type returnInt(){ return int; }
A type itself isn't a runtime value. I think the closest thing is a TypeInfo object:
https://dlang.org/library/object/type_info.html https://dlang.org/spec/expression.html#TypeidExpression