On May 4, 11:52 pm, Alex Osborne <[email protected]> wrote: > Thankfully, Mark managed to figure out a way of doing it with with gen- > class by using an undocumented (?) feature where you can put types > into the method names so as to pick the exact one you want to > override: > > (ns org.example.FancyInputStream > (:gen-class :extends java.io.InputStream)) > (defn -read-void [this] > (int \a))
Related: You can also use the :exposes-methods argument to gen-class to access superclass methods. -Stuart Sierra --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
