Basile B. wrote:
enum binFloat = *cast(float*) &b;
i was SO sure that this won't work in CTFE that i didn't even tried to do it. "it will fail anyway, there is no reason in trying!" ;-)
ketmar via Digitalmars-d-learn Fri, 09 Jun 2017 10:21:06 -0700
Basile B. wrote:
enum binFloat = *cast(float*) &b;
i was SO sure that this won't work in CTFE that i didn't even tried to do it. "it will fail anyway, there is no reason in trying!" ;-)