Compile-time calculation: Difference between revisions

Content added Content deleted
No edit summary
m (Added Erlang)
Line 270: Line 270:


<lang delphi>const fact10 = Factorial(10);</lang>
<lang delphi>const fact10 = Factorial(10);</lang>

=={{header|Erlang}}==
This is a placeholder since to do something more complex than text substitution macros Erlang offers parse transformations. This is a quote from their documentation: "Programmers are strongly advised not to engage in parse transformations". Somebody can do this task, but not I.


=={{header|Factor}}==
=={{header|Factor}}==