Forcing compile time evaluation of pure functions

bearophile bearophileHUGS at lycos.com
Thu Jul 14 19:56:19 PDT 2011


> In GCC there is a way to (sometimes) do it, see the __builtin_constant_p here:
> http://www.delorie.com/gnu/docs/gcc/gcc_81.html

Google code search gives about 8,100 answers:
http://www.google.com/codesearch#search/&q=%22__builtin_constant_p%22&type=cs

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list