On Tuesday, 9 June 2015 at 23:11:35 UTC, Timon Gehr wrote:
enum ct(alias a)=a;

Thanks! I need to remember that enum means "compile-time constant" and not strictly enumeration.

I guess one can use __ctfe to use a function at compile time and a lut a runtime too, e.g. "__ctfe ? sin(x) : lut_sin[x]"

Reply via email to