GNU bug report logs - #9776
case-lambda should accept zero clauses

Previous Next

Package: guile;

Reported by: Göran Weinholt <goran <at> weinholt.se>

Date: Mon, 17 Oct 2011 16:19:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Göran Weinholt <goran <at> weinholt.se>
To: 9776 <at> debbugs.gnu.org
Subject: bug#9776: case-lambda should accept zero clauses
Date: Mon, 17 Oct 2011 12:15:40 +0200
Hello guilers,

the case-lambda form is specified in r6rs-lib as accepting any number of
clauses, including zero. So this should not give an error:

scheme@(guile-user)> (case-lambda)
While compiling expression:
ERROR: Syntax error:
standard input:1:0: case-lambda: bad case-lambda in form (case-lambda)

Instead it should return a procedure that never gets the right number of
arguments.

Regards,

-- 
Göran Weinholt <goran <at> weinholt.se>




This bug report was last modified 12 years and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.