eval()
’s first argument is an expression. So if you only provide one argument, it will evaluate the expression in the current environment.express
假设环境中存在变量 x=10
ide
eval(quote(x), list(x=30))
至关于
首先,lua
quote(x)
获得x
以后,code
list(x=30) x
因而获得30
it
若是是eval(x, list(x=30))
, 至关于
首先,io
x
获得10
以后,变量
list(x=30) 10
因而获得10
vi
这里面有层层拨开的关系.co