bug#9776: case-lambda should accept zero clauses

2013-03-09 Thread Andy Wingo
On Sat 02 Mar 2013 19:13, Andy Wingo writes: > Picking up an old thread. What do people think about the attached > patch? It preserves arity checking for case-lambdas defined in the same > compilation unit. Case-lambdas are converted to nullary procedures in > the last minute, before compiling

bug#9776: case-lambda should accept zero clauses

2013-03-02 Thread Andy Wingo
Hi! Picking up an old thread. What do people think about the attached patch? It preserves arity checking for case-lambdas defined in the same compilation unit. Case-lambdas are converted to nullary procedures in the last minute, before compiling or memoizing. Calling one of these procedures wi

bug#9776: case-lambda should accept zero clauses

2012-02-02 Thread Ludovic Courtès
Hi Mark, Mark H Weaver skribis: > Thanks for tackling this. Of course this is Andy's area, but psyntax is > still fresh in my mind, so I'll attempt a review as well as my own > tentative approach. Psyntax is not yet a place where I feel comfortable, so I appreciate. :-) > l...@gnu.org (Ludov

bug#9776: case-lambda should accept zero clauses

2012-01-31 Thread Mark H Weaver
Hi Ludovic, Thanks for tackling this. Of course this is Andy's area, but psyntax is still fresh in my mind, so I'll attempt a review as well as my own tentative approach. l...@gnu.org (Ludovic Courtès) writes: > So, here’s a tentative patch for review: > > > Modified module/ice-9/psyntax.s

bug#9776: case-lambda should accept zero clauses

2012-01-31 Thread Ludovic Courtès
Hi Ian, Sorry for the late reply. Ian Price skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> Hi Göran, >> >> Sorry for the delay. >> >> Göran Weinholt skribis: >> >>> the case-lambda form is specified in r6rs-lib as accepting any number of >>> clauses, including zero. So this should not

bug#9776: case-lambda should accept zero clauses

2012-01-07 Thread Ian Price
l...@gnu.org (Ludovic Courtès) writes: > Hi Göran, > > Sorry for the delay. > > Göran Weinholt skribis: > >> the case-lambda form is specified in r6rs-lib as accepting any number of >> clauses, including zero. So this should not give an error: > > My interpretation of the ‘case-lambda’ implementa

bug#9776: case-lambda should accept zero clauses

2012-01-05 Thread Ludovic Courtès
Hi Göran, Sorry for the delay. Göran Weinholt skribis: > the case-lambda form is specified in r6rs-lib as accepting any number of > clauses, including zero. So this should not give an error: My interpretation of the ‘case-lambda’ implementation on p. 15 of r6rs-lib.pdf is that ‘case-lambda-hel

bug#9776: case-lambda should accept zero clauses

2011-10-17 Thread Göran Weinholt
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-lam