variable scope in an event handler

2008-12-27 Thread what-a-guy
Here's some code that works as I expected: dyn.clj (println *value*) test.clj (def *value* 'ok) (defn test-eval [] (load-file dyn.clj)) (test-eval) = 'ok But when run in an event handler it fails: test.clj (import '(javax.swing JButton JFrame)

macro help

2008-12-26 Thread what-a-guy
I'm attempting what should be a simple transformation using a macro called dlg in the following code: (defn fld [parent lay id text field] '...) ;; dlg macro. For this input: ;; ;; (dlg test ;; (field fld-1 Field number one (JTextField.)) ;; (field fld-2 Field number two (JTextField.))) ;;