Hi everyone,
I'm writing a simple lisp for educational purposes, and I can't figure
out how to do compilation. In particular, I can't figure out how I can
get a compiled file to run in the same way as if it were loaded. I
read on the webpage that Clojure can do this. Does anyone know how
Clojure does it?

eg. How can I compile this file, such that it does the same thing as
when it's loaded:

(def macro-helper (atom nil))

(println "Setting Macrohelper!")
(swap! macro-helper
  (constantly (fn []
                (println "Macro-Helper!")
                `(println "Runtime!"))))

(defmacro mymacro []
  (println "Macro Expansion Time!")
  (@macro-helper))

(mymacro)

Thanks a lot!
  -Patrick

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to