Hi, > (defmulti new-obj #(:_fenrir_class-name %))
You defined your function as #(:_fenrir_class-name %), so it will take only one argument. > However, when I call the multimethod with something like this: > > (new-obj fGameObject :location 'a-loc :sprite 'a-sprite) > > I get this error: > > 1:14 yggdrasil.fenrir.core=> java.lang.IllegalArgumentException: Wrong > number of args passed to: core$fn (repl-1:13) But you call it with 4 agruments. Replace #(:_fenrir_class-name %) with (fn [arg1 & _] (:_fenrir_class- name argg1)) -- Krešimir Šojat -- 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 To unsubscribe, reply using "remove me" as the subject.