定义全局变量

1 view
Skip to first unread message

panfei

unread,
Oct 12, 2012, 10:49:57 PM10/12/12
to lisp-...@googlegroups.com
[17]> (defparameter *glob* 99)
*GLOB*
[18]> (+ 1 glob)

*** - SYSTEM::READ-EVAL-PRINT: variable GLOB has no value
The following restarts are available:
USE-VALUE      :R1      Input a value to be used instead of GLOB.
STORE-VALUE    :R2      Input a new value for GLOB.
ABORT          :R3      Abort main loop
Break 1 [19]> :R3
[20]> (+ 1 *glob*)
100
[21]> (defparameter pan 99)
PAN
[22]> (+ 1 pan)
100
[23]> 


--
不学习,不知道

Reply all
Reply to author
Forward
0 new messages