Compile-time function execution: Difference between revisions

Content deleted Content added
FrescoBot (talk | contribs)
RileyBot (talk | contribs)
m Bot: Correcting capitalization or standardizing section headings) (Task 16
Line 6:
The [[Lisp (programming language)|Lisp]] macro system is an early example of the use of compile-time evaluation of user-defined functions in the same language.
 
The Metacode extension to C++ (Vandevoorde 2003)<ref>{{cite web|url=http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1471.pdf|title=Reflective Metaprogramming in C++|author=Daveed Vandevoorde, Edison Design Group|date=April 18, 2003|accessdate=July 19, 2015}} </ref> was an early experimental system to allow compile-time function evaluation (CTFE) and code injection as an improved syntax for C++ [[template metaprogramming]].
 
In earlier versions of [[C++]], [[template metaprogramming]] is often used to compute values at compile time, such as:
Line 86:
<references/>
 
==External Linkslinks==
* [http://rosettacode.org/wiki/Compile-time_calculation Rosettacode examples of compile-time function evaluation in various languages]