Macros in closure are (fn ...) where the var in which the function
resides has a flag in the metadata set. Which means there is no
difference between the two except to eval (or apply).
I was just thinking that all of the def* should share return values.
--~--~-~--~~~--
I'd like some version of doto that works on bare Classes
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, s
It's unlikely to come up, but I noticed this:
(macroexpand-1 '(defmacro foo [] 'bar))
=>(do (clojure/defn foo [] (quote bar)) (. (var foo) (setMacro)))
Doesn't return the return value of the defn, which I think it should
for consistency.
--~--~-~--~~~---~--~~
You
So after (def OpenGL GL11):
user=> (.GL_QUADS GL11)
7
user=> (.GL_QUADS OpenGL)
java.lang.IllegalArgumentException: No matching field found: GL_QUADS
for class clojure.lang.Symbol (NO_SOURCE_FILE:0)
Using (def OpenGL 'GL11) doesn't work either, and using (defmacro
OpenGL [] 'GL11) means I have t
It sounds like all we really need is a single clojure thread which
handles all access to Swing/AWT/Whatever. Since an additional
complaint is that Swing is too imperative, it sounds like both
problems could easily be solved at once.
I'd personally like for the declarations to be done using Clojure