Compile-time function execution: Difference between revisions

Content deleted Content added
IamOz (talk | contribs)
Created page with 'Compile time function execution (CTFE) is the ability of a compiler, that would normally compile a function to machine code and execute it at run time, to execu...'
 
{{original research}}
Line 1:
{{original research}}
Compile time function execution (CTFE) is the ability of a [[compiler]], that would normally compile a function to machine code and execute it at run time, to execute the function at compile time. This is possible if the arguments to the function are known at compile time, and the function does not make any reference to or attempt to modify any global state.
 
'''Compile time function execution (CTFE)''' is the ability of a [[compiler]], that would normally compile a function to machine code and execute it at run time, to execute the function at compile time. This is possible if the arguments to the function are known at compile time, and the function does not make any reference to or attempt to modify any global state.
 
===Example 1===