我需要变量的引用值。
例如,我们假设我们有变量qwe
和asd
:
(setq qwe '(1 2 3)) ;; qwe is set to (1 2 3)
(setq asd ''(1 2 3)) ;; asd is set to '(1 2 3)
我的问题是:如何使用asd
为qwe
获得相同的价值?
我是这样做的:
(setq asd `(quote ,qwe))
;; Now asd is '(1 2 3)
但它对我来说看起来很丑陋。如果没有更好的方法,我会感到惊讶。