Compile-time calculation: Difference between revisions

Added EchoLisp
(Simpler C code)
(Added EchoLisp)
Line 319:
 
<lang delphi>const fact10 = Factorial(10);</lang>
 
=={{header|EchoLisp}}==
'''define-constant''' may be used to compute data, which in turn may be used in other define-constant, or in the final code.
<lang scheme>
(define-constant DIX! (factorial 10))
(define-constant DIX!+1 (1+ DIX!))
 
(writeln DIX!+1)
3628801
</lang>
 
=={{header|Erlang}}==