dsimcha: > It probably only works for D2, though. > ... > uint pow(alias n, alias power)() { > static if(__traits(compiles, test!(n)) && __traits(compiles, test!(power))) { ... Are there ways in D1 to know if a given value is a compile time constant or a runtime variable? Bye, bearophile