In Lisp, how do I fix “Warning: Assumed Special?”

后端 未结 3 1785
囚心锁ツ
囚心锁ツ 2020-12-18 12:24

In this file I get 9 warnings of \"assumed special\". They are

;;;*** Warning in CHECK-ROW: CHECKARRAY assumed special in SETQ
;;;*** Warning in CHECK-ROW: R         


        
3条回答
  •  鱼传尺愫
    2020-12-18 13:09

    The difference is that setq is not, strictly speaking, supposed to be used to define a variable (I am not exactly sure why, since it does define a variable).

    Use defvar for globals and the let construct for locals.

提交回复
热议问题