unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#9567: curious match bug (?)
@ 2011-09-21  3:34 Andy Wingo
  2011-09-21 12:15 ` Stefan Israelsson Tampe
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Andy Wingo @ 2011-09-21  3:34 UTC (permalink / raw)
  To: 9567

Hi,

Try this:

  (use-modules (language tree-il) (ice-9 match))
  (define foo (parse-tree-il '(let-values (apply (lambda () (lambda-case ((() #f #f #f () ()) (apply (primitive values) (const 1) (const 2)))))) (lambda-case (((a b) #f #f #f () (#{a 134390}# #{b 134391}#)) (apply (primitive list) (lexical a #{a 134390}#) (lexical b #{b 134391}#)))))))
  (match foo
    (($ <let-values> src exp
        ($ <lambda-case> src2 req #f #f #f () gensyms body #f))
     #t)
    (_
     #f))
  => #t
                         
  (match foo
    (($ <let-values> src foo ;; <- rename "exp" to "foo"
        ($ <lambda-case> src2 req #f #f #f () gensyms body #f))
     #t)
    (_
     #f))
  => #f

I tried to reduce this case a bit, but didn't succeed directly, and I
need to move on.  But what is the deal here?

Andy
-- 
http://wingolog.org/





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-10-16 16:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-21  3:34 bug#9567: curious match bug (?) Andy Wingo
2011-09-21 12:15 ` Stefan Israelsson Tampe
2011-09-23 14:45 ` Ludovic Courtès
2011-09-23 16:24   ` Stefan Israelsson Tampe
2011-09-24 14:51   ` Andy Wingo
2011-09-24 15:01 ` bug#9567: `match' bug ? Andy Wingo
2011-09-25  6:59   ` Alex Shinn
2011-10-15 14:07     ` Ludovic Courtès
2011-10-16  7:28       ` Alex Shinn
2011-10-16 16:38         ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).