The version with "setq" produced (First First), which was a surprise. Why is this?
thanks a lot,
dave_f
newLISP v.9.9.2 , Mac OS 10.5.5 Intel
Code: Select all
(context 'CTX)
(context 'MAIN)
(setq ctx-names '(First Second))
(dolist (ctx-name ctx-names)
(set 'new-ctx (new CTX ctx-name) ) ; this works as I expected
; (setq new-ctx (new CTX ctx-name)) ; this does not work as I expected
(push new-ctx contexts) )
(println "context list is " contexts)