Re: Two r6rs bugs

2012-11-25 Thread Ian Price
Okay, pushed to stable-2.0 -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Re: Two r6rs bugs

2012-11-25 Thread Mark H Weaver
Ian Price writes: > Mark H Weaver writes: > >> Instead of using 'null?' and 'cdr' on the syntax object, can you please >> rework this to use 'syntax-case'? I.e. instead of (if (null? ...) ...) >> do this: >> >> (syntax-case #'(rest ...) () >> (() ) >> ((name rest ...) )) >> >> What do

Re: Two r6rs bugs

2012-11-25 Thread Ian Price
Mark H Weaver writes: > Instead of using 'null?' and 'cdr' on the syntax object, can you please > rework this to use 'syntax-case'? I.e. instead of (if (null? ...) ...) > do this: > > (syntax-case #'(rest ...) () > (() ) > ((name rest ...) )) > > What do you think? Yes, that would be

Re: Two r6rs bugs

2012-11-22 Thread Mark H Weaver
Hi Ian, Ian Price writes: > The second one is a change to resolve-r6rs-interface. Previously > mark-weaver [0], changes this so that it would correctly look up > submodules under the srfi namespace, but in doing so took into account > the srfi 97[1] library name, which it should not have done. I

Re: Two r6rs bugs

2012-11-22 Thread Ludovic Courtès
Hi! Ian Price skribis: > From 5f06983d26ccbd7410891730664aa83bef79e763 Mon Sep 17 00:00:00 2001 > From: Ian Price > Date: Thu, 22 Nov 2012 09:45:12 + > Subject: [PATCH 1/2] R6RS `string-for-each' should accept multiple string > arguments > > * module/rnrs/base.scm (string-for-each): Rewrit

Re: Two r6rs bugs

2012-11-22 Thread Mike Gran
> From: Mike Gran > > For what it is worth, R7RS WG1 draft 6 says "If more than one > strings have the same length, > when the shortest string runs out."string is given and not > allstring-for-each terminates Gah!  Sorry, worst cut-and-paste ever.  That's what I get for posting in the middle

Re: Two r6rs bugs

2012-11-22 Thread Ian Price
Mike Gran writes: > For what it is worth, R7RS WG1 draft 6 says "If more than one > strings have the same length, > when the shortest string runs out."string is given and not allstring-for-each > terminates > > Since R7RS is just going to undo the change, it hardly seems > worth changing, in m

Re: Two r6rs bugs

2012-11-22 Thread Mike Gran
> From: Ian Price > The first replaces the definition of string-for-each in (rnrs > base). R6RS's version of string-for-each is not the same as srfi 13's > string for each (which guile provides by default). Rather, it is more > closely analogous to the usual multi-list definition of for-each. The