D's treatment of values versus side-effect free nullary functions
Jim Balter
Jim at Balter.name
Sat Jul 24 04:46:06 PDT 2010
"div0" <div0 at users.sourceforge.net> wrote in message
news:i2d2ek$179m$1 at digitalmars.com...
> 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.
That's what command line optimzation options are for.
>
> --
> My enormous talent is exceeded only by my outrageous laziness.
> http://www.ssTk.co.uk
More information about the Digitalmars-d
mailing list