On Jan 19, 4:29 pm, Jason Wolfe <jawo...@berkeley.edu> wrote: > I've been doing some OO-type Clojure programming, and have run into > the following (quite minor) annoyance: > > I've defined a struct with a :class of ::Foo in namespace > my.long.namespace.foo. > > In another namespace my.long.namespace.bar, I want to define a > subclass of this struct. > In this namespace, I require [...foo :as foo], so that I can refer to > multimethods like foo/method1. > > However, it seems I'm still required to write > (derive ::Bar :my.long.namespace.foo/Foo) > when I'd like to write > (derive ::Bar :foo/Foo)
On IRC, "duck1123" just showed me that this is already implemented; you just have to use the "::" form. (derive ::Bar ::foo/Foo) You learn something new every day... -Jason --~--~---------~--~----~------------~-------~--~----~ 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 clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---