bug#17485: [PATCH 1/3] Let length+ return the length of dotted lists rather than #f

2014-06-04 Thread David Kastrup
David Kastrup writes: >> Otherwise, this function looks good to me, but I'd prefer to give it a >> new name and move it into list.c, rather than extending SRFI-1's >> 'length+'. It's not an "extension" of SRFI-1's length+: it just does the same as the SRFI-1 reference implementation. It is just

bug#17147: [PATCH] Add versions of and/or avoiding O(n^2) argument matching

2014-06-04 Thread David Kastrup
Fixes * module/ice-9/boot-9.scm (and, or): Add syntax rules that only do one pattern matching operation per and/or rather than per argument. Signed-off-by: David Kastrup --- module/ice-9/boot-9.scm | 26 ++ 1 file changed, 26 insertions(+)

bug#17296: Uh, wrong?

2014-06-04 Thread Mark H Weaver
David Kastrup writes: > Mark H Weaver writes: > >> David Kastrup writes: >>> So the behavior for length+ on a dotted list is strictly unspecified. >>> It is not even stated "it is an error". >> >> Actually, it is. At the end of the section that defines the "types" >> such a "clist" and "flist"

bug#17147: [PATCH] Add versions of and/or avoiding O(n^2) argument matching

2014-06-04 Thread Mark H Weaver
David Kastrup writes: > Fixes > > * module/ice-9/boot-9.scm (and, or): Add syntax rules that only do one > pattern matching operation per and/or rather than per argument. Thanks, but I ended up simply changing the macros to dotted tail patterns. It's commit 1ea8954

bug#17502: R6RS `library' form must have exports before imports

2014-06-04 Thread Mark H Weaver
Taylan Ulrich Bayirli/Kammer writes: > The R6RS `library' form requires the (export ...) list to appear > before the (import ...) list. Indeed, good catch! > Here's a corresponding documentation patch against master/3be43fb: We will want to apply this to stable-2.0. > From 7900da779f1ab267481

bug#17147: [PATCH] Add versions of and/or avoiding O(n^2) argument matching

2014-06-04 Thread David Kastrup
Mark H Weaver writes: > David Kastrup writes: > >> Fixes >> >> * module/ice-9/boot-9.scm (and, or): Add syntax rules that only do one >> pattern matching operation per and/or rather than per argument. > > Thanks, but I ended up simply changing the macros to dotted t