Am I missing some important fact about interning symbols in LISP?

前端 未结 3 972
北荒
北荒 2021-01-21 17:50

To be brief. Here is my several tries to intern and use a symbol in clisp.

 [1]> (setq sym (intern \"foo\"))
 |foo|
 [2]> (eq sym \'foo)
 NIL
3条回答
  •  礼貌的吻别
    2021-01-21 18:00

    Eval evaluates the form in the null lexical environment, i.e. with no lexical bindings. That has nothing to do with the interning of symbols.

提交回复
热议问题