bearophile wrote: > MLT: >> Is there a way to get the base type of location? > > See the BaseTypedef() template in the "templates" module of my dlibs (they > are for Phobos): > http://www.fantascienza.net/leonardo/so/libs_d.zip > > Bye, > bearophile
It's probably something along the lines of: template BaseTypedef(T) { static if( is( T U == typedef ) ) alias U BaseTypedef; else alias T BaseTypedef; } -- Daniel