On Mar 24, 10:51 pm, mikel <mev...@mac.com> wrote:
> On Mar 24, 5:37 pm, Meikel Brandmeyer <m...@kotka.de> wrote:

[...snip...]

I wanted to call out a point that I made before, but that is maybe
buried in a little too much verbiage. The point is that there is maybe
a way for me to implement an automated and predictable answer to the
question you raised:

=======================

Suppose the following situation:

(define-method foo [x some.inter.Face] ...)
(define-method foo [x some.other.Interface] ...)

Now suppose you call this function foo with something like
(proxy [some.inter.Face some.other.Interface] [] ...). Which
magic decides which method to use?

========================

The answer I propose is that dispatch chooses some.inter.Face first,
because it appears leftmost in the sequence of interfaces you provided
to proxy.

That's not currently implemented because I'm not sure yet if the order
of interfaces reported by a proxy object is reliably stable, and
whether it reliably reflects their order in the original proxy
expression.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to