lite 发表于 2013-8-5 19:22:01

程序运行完后,为什么sp的值不是nil???????

   (Defun C:ASpline (/ SEPoint sen SC SDP SE SEL SN SNN SPSPL SPN SPP SS)
   在程序的开头,已经把sp加入,程序运行完后,为什么sp的值不是nil ????

Andyhon 发表于 2013-8-5 19:55:08

一个假设

Command: (setq sp 6)
6

Command: (defun C:test (/ sp) (setq sp (+ 1 2)) (princ sp) (princ))
C:TEST

Command: test
3

Command: !sp
6

自贡黄明儒 发表于 2013-8-5 20:02:57

多半是其它地方对sp赋了值,如楼上言。

lite 发表于 2013-8-6 09:34:12

感谢Andyhon 自贡黄明儒 大师的热情回复,谢谢!!!
页: [1]
查看完整版本: 程序运行完后,为什么sp的值不是nil???????