new match system bug?

2010-09-04 Thread Stefan Israelsson Tampe
Hi, While eating the dogfood of the new match macro I come across a bug e.g, this does not work! (match '(a b) ((and x (a ... b)) a)) But using the attached patch, it works!! Note. This should be interesting for upstreams maintainers. /Regards Stefan diff --git a/module/ice-9/match.scm b/modu

Re: new match system bug?

2010-09-04 Thread Ludovic Courtès
Hello! Stefan Israelsson Tampe writes: > While eating the dogfood of the new match macro I come across a bug > e.g, this does not work! > > (match '(a b) ((and x (a ... b)) a)) But: scheme@(guile-user)> (match '(a b) ((and x (a . b)) a)) $1 = a According to the grammar in the manual, I do

Re: new match system bug?

2010-09-04 Thread Stefan Israelsson Tampe
On Saturday, September 04, 2010 02:44:49 pm Ludovic Courtès wrote: > Hello! > > Stefan Israelsson Tampe writes: > > While eating the dogfood of the new match macro I come across a bug > > e.g, this does not work! > > > > (match '(a b) ((and x (a ... b)) a)) > > But: > > scheme@(guile-user)>

Re: new match system bug?

2010-09-04 Thread Ludovic Courtès
Hi Stefan! Stefan Israelsson Tampe writes: > How true, It's just that the code we took has an extension with a Bug in it. > It was intended to work for that case as well. > > From match.upstream.scm: > ;; 2007/07/21 - allowing ellipse patterns in non-final list positions Then how about reportin

Re: new match system bug?

2010-09-04 Thread Stefan Israelsson Tampe
On Saturday, September 04, 2010 02:44:49 pm Ludovic Courtès wrote: > Hello! > > Stefan Israelsson Tampe writes: > > While eating the dogfood of the new match macro I come across a bug > > e.g, this does not work! > > > > (match '(a b) ((and x (a ... b)) a)) > > But: > > scheme@(guile-user)>

Re: new match system bug?

2010-09-04 Thread Stefan Israelsson Tampe
On Saturday, September 04, 2010 05:00:31 pm Ludovic Courtès wrote: > Hi Stefan! > > Stefan Israelsson Tampe writes: > > How true, It's just that the code we took has an extension with a Bug in > > it. It was intended to work for that case as well. > > > > From match.upstream.scm: > > ;; 2007/07/

Re: [PATCH] Fix for `submodules' in (ice-9 session) (closes #30062)

2010-09-04 Thread Andy Wingo
Hi, On Fri 03 Sep 2010 18:13, "Jose A. Ortega Ruiz" writes: > On Fri, Sep 03 2010, Andy Wingo wrote: > >> We can add flags to modules to indicate that they are temporary; not >> "user modules". > > That'd be great. Then, we could add a (keyword) parameter to the folding > functions to exclude (o

done hacking for 1.9.12

2010-09-04 Thread Andy Wingo
Hi, I got in a couple last-minute fixes for 1.9.12, so that when Ralf's automake patches land they'll actually work with a released version of Guile, modulo cross-compilation. So now that that is in, I'm not going to commit to master, so let me not be an impediment to 1.9.12 :) Cheers, Andy --

GNU Guile 1.9.12 released (beta)

2010-09-04 Thread Ludovic Courtès
We are pleased to announce GNU Guile release 1.9.12. This may be the last pre-release before the 2.0 release. It provides many new noteworthy features, most notably the addition of a compiler and virtual machine. We encourage you to test them and provide feedback to `guile-de...@gnu.org'. The G

program-module returns a non-module

2010-09-04 Thread Jose A. Ortega Ruiz
Hi, When called on a program (procedure object) implemented in C, program-module returns something that is not a module: (define cp (module-ref (current-module) 'cons)) (program? cp) => #t (program-module cp) => # (module? (program-module cp)) => #f Since `cp' above is a program, i was