User Tools

Site Tools


script:walkthrough:basic_expressions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
script:walkthrough:basic_expressions [2019-11-20 07:28]
skyjake [Built-in functions]
script:walkthrough:basic_expressions [2019-11-20 07:29]
skyjake
Line 121: Line 121:
   [ 1, One, { 1: One } ]   [ 1, One, { 1: One } ]
  
-The ''​eval()''​ function evaluates its argument as a script and returns the return value from it.+The ''​eval()''​ function evaluates its argument as a script and returns the return value from it. The script gets runs in the same namespace where ''​eval()''​ was called in.
  
   $ a = eval("""​ '​arg'​ + '​ument'​ """​)   $ a = eval("""​ '​arg'​ + '​ument'​ """​)
script/walkthrough/basic_expressions.txt ยท Last modified: 2019-11-20 07:30 by skyjake