Compile-time calculation: Difference between revisions
added Arturo
(Added C3 code.) |
Drkameleon (talk | contribs) (added Arturo) |
||
Line 209:
{{output}}
<syntaxhighlight lang="applescript">3628800</syntaxhighlight>
=={{header|Arturo}}==
<syntaxhighlight lang="arturo">f10: 1*2*3*4*5*6*7*8*9*10 ; this is evaluated at compile time
; the generate bytecode is:
; [ :bytecode
; ================================
; DATA
; ================================
; 0: 3628800 :integer
; 1: f10 :label
; ================================
; CODE
; ================================
; push0
; store1
; end
; ]
print f10</syntaxhighlight>
{{out}}
<pre>3628800</pre>
=={{header|BASIC}}==
|