I'm having a problem with some multimethods, so I'm trying to create debug 
versions of the dispatch functions which have debug prints in them. 
 However, the prints aren't executing.  Here's an example:

(defn meta-type
  "Gets the metadata type."
  [o]
  (when-let [m (meta o)]
    (:type m)))

(defn debug-switch
  [o & rest]
  (println "Received switch args : " o ", " rest)
  (meta-type o))

(defmulti testmulti debug-switch)

(defmethod....

I started using the meta-type function for dispatch, but then started using 
debug-switch.  It actually works fine, running the appropriate version of 
the method, but the println doesn't execute.  Does anyone know why?

Thanks.

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


Reply via email to