CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
|
|
@ -0,0 +1,6 @@
|
|||
(defun rc-create-variable (name initial-value)
|
||||
"Create a global variable whose name is NAME in the current package and which is bound to INITIAL-VALUE."
|
||||
(let ((symbol (intern name)))
|
||||
(proclaim `(special ,symbol))
|
||||
(setf (symbol-value symbol) initial-value)
|
||||
symbol))
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
CL-USER> (rc-create-variable "GREETING" "hello")
|
||||
GREETING
|
||||
|
||||
CL-USER> (print greeting)
|
||||
"hello"
|
||||
Loading…
Add table
Add a link
Reference in a new issue