CTFE - filling an array

Christopher Wright dhasenan at gmail.com
Tue Dec 9 04:27:12 PST 2008


The Anh Tran wrote:
>     static double[N] dd = void;

dd is not a compile-time constant.

>     static auto tmp = f!(N).fn(dd);

The initializer of tmp must be a compile-time constant, but since dd is 
not a compile-time constant, you can't use CTFE on fn.


More information about the Digitalmars-d-learn mailing list