Runtime evaluation: Difference between revisions

Content added Content deleted
(Added Erlang.)
(GWBASIC)
Line 66: Line 66:
VAL and KEYIN execute code in the environment they are called from. In the above examples, VAL and KEYIN both see the local variable x.
VAL and KEYIN execute code in the environment they are called from. In the above examples, VAL and KEYIN both see the local variable x.
There is no sandbox functionality in Bata BASIC or SAM BASIC.
There is no sandbox functionality in Bata BASIC or SAM BASIC.

=== GWBASIC ===
10 LINE INPUT "Type an expression: ",A$
20 OPEN "CHAIN.TMP" FOR OUTPUT AS #1
30 PRINT #1, "70 LET Y=("+A$+")"
40 CLOSE #1
50 CHAIN MERGE "CHAIN.TMP",60,ALL
60 FOR X=0 TO 5
70 REM
80 PRINT X,Y
90 NEXT X
100 GOTO 10


=={{header|Common Lisp}}==
=={{header|Common Lisp}}==