It seems pure ain't so pure after all

Tommi tommitissari at hotmail.com
Mon Oct 1 14:40:33 PDT 2012


On Monday, 1 October 2012 at 21:29:33 UTC, Tommi wrote:
> Maybe the name @force_ctfe is misleading. But, like I said: 
> "the attribute @asdf would make it so that the function is 
> guaranteed to execute at compile-time when its arguments are 
> compile-time constants".

Oh, wait. Now I understand why that sentence is misleading. It 
should be:

The function attribute @asdf would guarantee compile-time 
evaluation of all such calls to that function, where all 
arguments (that you pass into the function), of which the 
function's output depends on, are compile-time evaluable.




More information about the Digitalmars-d mailing list