[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #1389: case-lambda expects 2 arguments
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #1389: case-lambda expects 2 arguments |
Date: |
Tue, 18 Jul 2017 17:08:58 -0000 |
#1389: case-lambda expects 2 arguments
----------------------+--------------------------------
Reporter: ajmorgan | Owner:
Type: defect | Status: new
Priority: major | Milestone: someday
Component: unknown | Version: 4.12.0
Keywords: | Estimated difficulty:
----------------------+--------------------------------
from the case-lambda documentation:
(define plus
(case-lambda
(() 0)
((x) x)
((x y) (+ x y))
((x y z) (+ (+ x y) z))
(args (apply + args))))
causes:
=> Error: (#f) "during expansion of (case-lambda ...) - bad argument count
- received 5 but expected 2": (#<procedure (min a b)>)
--
Ticket URL: <https://bugs.call-cc.org/ticket/1389>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #1389: case-lambda expects 2 arguments,
Chicken Trac <=