2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -1,5 +1,6 @@
|
|||
CL-USER> (rc-create-variable "GREETING" "hello")
|
||||
GREETING
|
||||
|
||||
CL-USER> (print greeting)
|
||||
"hello"
|
||||
(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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue