;; run the following code that creates namespace blech where (ns ...) includes metadata ;; both cases compile without error ;; case 1: when metadata entry :type "test" is included (the-ns 'blech) works ;; case 2: when metadata entry :type :test is included (the-ns 'blech) triggers the exception: ;; ClassCastException clojure.lang.Namespace cannot be cast to clojure.lang.IObj ;; clojure.core/with-meta (core.clj:214) ;; note: cases were run with freshly restarted repl
;; test code ------------------------------------------------------------------------------------------------------------------- (ns blech { :xtype :test ;; no error ;:type "test" ;; case 1 - (the-ns 'blech) works :type :test ;; case 2 - (the-ns 'blech) triggers exception }) (in-ns 'user) (the-ns 'blech) -- -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.