D's treatment of values versus side-effect free nullary functions

div0 div0 at users.sourceforge.net
Sat Jul 24 05:59:46 PDT 2010


On 24/07/2010 12:46, Jim Balter wrote:
>
> "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.

No they aren't.

command line options apply to the entire module(s) not to specific 
invocations of a function.

-- 
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk


More information about the Digitalmars-d mailing list