Compile-time calculation: Difference between revisions

Content added Content deleted
(Added XLISP)
m (added whitespace before the TOC (table of contents), added a ;Task: (bold) header, added other whitespace to the task's preamble.)
Line 1: Line 1:
{{task}}
{{task}}
Some programming languages allow calculation of values at compile time. For this task, calculate 10! at compile time. Print the result when the program is run.
Some programming languages allow calculation of values at compile time.


;Task:
Calculate   10!   at compile time.

Print the result when the program is run.


Discuss what limitations apply to compile-time calculations in your language.
Discuss what limitations apply to compile-time calculations in your language.
<br><br>

=={{header|Ada}}==
=={{header|Ada}}==
Here's a hardcoded version:
Here's a hardcoded version: