"Jim - FooBar();" <[email protected]> writes: > your extension point on Number is never fired because 10 is a Long.
Sure, I understand why it's not working! I just don't know how to fix it. > Generally speaking extending protocols to interfaces is not > suggested... I'm extending an API which is interface driven -- the OWL API in this case. http://owlapi.sourceforge.net/javadoc/index.html At the moment I am just playing, but the idea was to extend this API so that it supports core.match. > I've been bitten a couple of times in particular whenever > I'm extending to 2 different interfaces that *are* related...You can > certainly do it but you have to have sure that your top interface > comes first than the others. In this case, that wouldn't work; I really need to call a superclass implementation. For instance, the class OWLEntity has one method on it that I need to call. It has 8 direct subintefaces, and quite a lot more below that. I don't want to have to support the single method multiple times. I can think of otherways to do this, I guess, but they kind of involve lots of instance? checks. Phil -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
