I think only code lists have the line and source metadata attached, so
that's all that's available.  The compiler can't attached such metadata to
non-code vectors because, I think, that would potentially conflict with
user's metadata.  It can't put metadata on objects like Strings that don't
support metadata, and it can't put metadata on symbols and keywords because
those objects can appear in multiple places so there is no single source
location.  The compiler has the same limitations as your macro.

I take it you found the meta for code lists:

user> (defmacro mac [col] `(throw (Exception. (str "mac<" ~^col ">"))))
#'user/mac
user> (mac
       (or false true))
; Evaluation aborted.
user> *e
#<CompilerException java.lang.Exception: mac<{:line 2}> (NO_SOURCE_FILE:0)>

-Mike

--~--~---------~--~----~------------~-------~--~----~
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