Hi, Am 24.03.2009 um 18:51 schrieb mikel:
(define-method add [x y] ...) (define-method add [[x java.lang.Integer] y] ...) (define-method add [x [y java.lang.Integer]] ...) and call (add 3 3). Which of the methods is chosen?Isn't it the second, which is the most specific on the first argument ?(I think I remember this from CLOS ...)That's correct.
I'm still not sure I understand how this is resolved. 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? Sincerely Meikel
smime.p7s
Description: S/MIME cryptographic signature