Search found 1 match

by tsikov
Tue Feb 07, 2017 5:34 am
Forum: Common Lisp
Topic: Reference a variable
Replies: 3
Views: 6925

Re: Reference a variable

Lisp is a so-called "LISP-2" meaning that the function names and the variable names "live" two different namespaces. To access the value of a variable given it's symbol, you can use the symbol-value operator. E.g.: (defparameter test 123) ; => TEST (symbol-value (intern "TEST")) ; => 123 intern in t...