guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

generic methods and trailing arguments


From: Lars J. Aas
Subject: generic methods and trailing arguments
Date: Mon, 6 Nov 2000 16:15:02 +0100
User-agent: Mutt/1.2.5i

With Goops' generic methods, it seems like trailing arguments are
ignored when method arbitration is done.  Take for instance this
example:

  (define-method (hello arg) (display "1 arg\n"))
  (define-method (hello arg arg2) (display "2 args\n"))

  (hello 1)
  => 1 arg
  (hello 1 2)
  => 2 args
  (hello 1 2 3)
  => 2 args

Is there a way to make the method arbitration more strict?  Maybe
it's a bug?  I'm using the goops 0.9 distribution.

  Lars J



reply via email to

[Prev in Thread] Current Thread [Next in Thread]