本帖最后由 llsheng_73 于 2023-12-27 13:20 编辑
'(alert (strcat "C:F" (itoa count) " !!!"))导致定义函数的时候,其后的所有运算均不会进行,到了运行的时候,才会取相应的变量值按设定的方式进行处理
![](source/plugin/imc_colorcode/images/loading.gif) - (defun C:DEF()
- (setq count 0)
- (repeat 3
- (setq count (1+ count))
- (setq func-name (strcat "C:F" (itoa count)))
- (eval(List 'defun-q (read func-name)nil
- (list 'alert(strcat"C:F"(itoa count)"!!!!!"))
- '(princ)))))
|