Programming
(Lisp) Global lexical variable implementation by Kent M. Pitman
steloflute
2023. 10. 10. 03:13
Source: Global lexical variable? (google.com)
(defmacro deflexical (var &optional init doc)
`(progn (define-symbol-macro ,var (get ',var 'lexical))
(setf ,var ,init)
(setf (get ',var 'lexical-doc) ',doc)
',var))