D's treatment of values versus side-effect free nullary functions
div0
div0 at users.sourceforge.net
Fri Jul 23 14:44:31 PDT 2010
On 23/07/2010 21:54, Don wrote:
>
> I completely agree that there will always be opportunities for CTFE
> which will be missed unless you allow the compile time to become
> arbitrarily long.
Which is why ultimately it should be up to the programmer to decide.
There should be a way to force the compiler to try CTFE, unless it can
absolutely prove the function is not CTFE.
--
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
More information about the Digitalmars-d
mailing list