小编geo*_*car的帖子

想要在CLISP中使用EVAL访问词法定义的函数

为什么这段代码不起作用?

(setf x '(foo bar (baz)))

(labels 
    ((baz () (print "baz here"))) 
    (baz) ;works
    (eval (third x))) ;fails with the below message

*** - EVAL: undefined function BAZ
Run Code Online (Sandbox Code Playgroud)

我正在使用GNU CLISP.

clisp

5
推荐指数
1
解决办法
163
查看次数

标签 统计

clisp ×1