[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lambda-list congruence (Re: setter again)
- To: info-dylan@cambridge.apple.com
- Subject: lambda-list congruence (Re: setter again)
- From: gomi@tomato.otsl.oki.co.jp (Hiroshi Gomi)
- Date: Fri, 6 Nov 92 11:09:52 JST
- In-reply-to: Msg of Thu, 05 Nov 92 09:20:49 PST from thant@void.esd.sgi.com
- Reply-to: gomi@otsl.oki.co.jp
I am Gomi.
I don't like a lambda-list congruence in parameter-list of method.
(CLOS, too)
I want to use a different number of arguments in method. Their
methods have different classes or same classes.
Then if no ambiguousness, Dylan performs different number of arguments
in method definition. (--> I am glad and use Dylan.)
Exp.
(define-method foo ((x <number>) (y <number>)) (+ x y))
(define-method foo ((x <number>)) (+ 1 x))
;;; O.K.
(define-method foo ((x <number>) (y <number>)) (+ x y))
(define-method foo ((x <number>) #rest r) ...)
;;; N.G.
# But the costs of implementation and running are big .... uuun.
From Go. (Nagoya.Japan)
gomi@otsl.oki.co.jp