Functions that return type

data pulverizer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jan 16 13:22:15 PST 2016


Is it possible to create a function that returns Type like 
typeof() does? Something such as:

Type returnInt(){
     return int;
}

More to the point what is the Type of a type such as int?

Thanks


More information about the Digitalmars-d-learn mailing list