There isn't an equivalent right now.  The simplest workaround is to
factor out the common code into an ordinary function, and call it from
your multimethods.

-SS


On Aug 7, 2:55 pm, Andy Chambers <achambers.h...@googlemail.com>
wrote:
> Hey All,
>
> Does clojure have an equivalent of either CLOS's `call-next-method' or
> java's super?
>
> For example, given the multi-method, and the interfaces ICDISCElement
> and IODMDef, where IODMDef extends ICDISCElement....
>
> (defmulti validate class)
>
> (defmethod validate ICDISCElement [elem]
>   ;;generic validation of all elements)
>
> (defmethod validate IODMDef [def]
>   ;;how can I do stuff in here then pass control to the other validate
> method)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to