println works fine in this example at least:

Clojure 1.5.1
user=> (defn meta-type
  "Gets the metadata type."
  [o]
  (when-let [m (meta o)]
    (:type m)))
#'user/meta-type

user=> (defn debug-switch
  [o & rest]
  (println "Received switch args : " o ", " rest)
  (meta-type o))
#'user/debug-switch

user=> (defmulti testmulti debug-switch)
#'user/testmulti

user=> (defmethod testmulti :w [v] (println v))
#<MultiFn clojure.lang.MultiFn@328a0152>

user=> (defmethod testmulti :w [v] (println "In multifn, got value " v))
#<MultiFn clojure.lang.MultiFn@328a0152>

user=> (testmulti (with-meta [] {:type :w}))
Received switch args :  [] ,  nil
In multifn, got value  []
nil


Care to post your entire example?

Cheers,
Alf




On 24 March 2013 23:04, George Oliver <georgeolive...@gmail.com> wrote:

>
>
> On Sunday, March 24, 2013 3:01:53 PM UTC-7, George Oliver wrote:
>>
>>
>>
>> Not sure, but is it possible you're running afoul of a redefined defmulti
>> not overriding the original defmulti in the REPL? Try clearing the defmulti
>> with a (def dispatch-fn nil) and then reloading the defmulti?
>>
>
> Sorry, of course that should be (def testmulti nil)
>
> --
> --
> 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.
>
>
>

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