Is there anyway to do the following with the existing multi-method facilities?
There is a general multi-method length(object) that splits off to different methods depending on the :class of the object. And then specifically for objects with :class = :stateMachine, I want to define it's method to split off further depending on the :state of the object. (defmulti length :class) (defmethod-multi length :stateMachine :state) (defmethod length :stateMachine :walking (println "Short distance")) (defmethod length :stateMachine :running (println "Long distance")) Thanks very much for your help. -Patrick --~--~---------~--~----~------------~-------~--~----~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---