request switch statement with common block

Ali Çehreli acehreli at yahoo.com
Sun Aug 4 10:27:34 PDT 2013


On 08/03/2013 01:38 PM, bearophile wrote:

 > enum mysize(T) = T.sizeof;

That works...

 > template Pair(T) = Tuple(T, T);

Instead, the following works (alias and !):

alias Pair(T) = Tuple!(T, T);

Is my change right?

Ali



More information about the Digitalmars-d mailing list