Compile-time function execution: Difference between revisions

Content deleted Content added
m dab
Yobot (talk | contribs)
m WP:CHECKWIKI error fixes + general fixes using AWB (7713)
Line 40:
</source>
 
The use of <code>const</code> tells the compiler that the initializer for the variables must be computed at compile time.<ref>[http://www.digitalmars.com/d/1.0/attribute.html#const D 1.0 language specification: Attributes]</ref>.
 
CTFE can be used to populate simple data structures at compile-time in a simple way (D version 2) (this is a function template):
Line 62:
<references/>
 
{{DEFAULTSORT:Compile Time Function Execution}}
[[Category:Compiler construction]]