Hi, Am 06.12.2009 um 21:29 schrieb Bob Hutchison:
> It turns out that dispatching on play.foo.Foo is the only way that > works. I was hoping ::f/Foo or f/Foo would work too (maybe my alias is > wrong??). Especially since, with aliasing in the user namespace, I can > create a play.foo.Foo using f/Foo Does the following work? (ns play.foo) (deftype Foo []) (defmulti my-print type) (defmethod my-print ::Foo [x] (println "Got a foo")) (in-ns 'user) ; Note: normally written as (require [play.foo :as f]) (alias 'f 'play.foo) (def x (f/Foo)) (f/my-print x) Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature
