Re: Inconsistent behaviour of the pattern matcher

2013-04-28 Thread Stefan Israelsson Tampe
On Sun, Apr 28, 2013 at 7:30 PM, Mark H Weaver wrote: > Stefan Israelsson Tampe writes: > > > On Sun, Apr 28, 2013 at 2:51 PM, Mark H Weaver wrote: > > > > Panicz Maciej Godek writes: > > > > > (match #u8(1 2 3) > > > (#u8(a b c) > > > (list a b c))) > > > > This can't work

Re: Inconsistent behaviour of the pattern matcher

2013-04-28 Thread Mark H Weaver
Stefan Israelsson Tampe writes: > On Sun, Apr 28, 2013 at 2:51 PM, Mark H Weaver wrote: > > Panicz Maciej Godek writes: > > > (match #u8(1 2 3) > > (#u8(a b c) > > (list a b c))) > > This can't work because a uniform numeric vector cannot hold > symbols, so >

Re: Inconsistent behaviour of the pattern matcher

2013-04-28 Thread Stefan Israelsson Tampe
On Sun, Apr 28, 2013 at 2:51 PM, Mark H Weaver wrote: > Panicz Maciej Godek writes: > > > I've traced something that is not entirely a bug, but which was a > > little surprise for me. It has to do with the extensions that guile > > provides to the Scheme language -- namely, uniform vectors and a

Re: Inconsistent behaviour of the pattern matcher

2013-04-28 Thread Mark H Weaver
Panicz Maciej Godek writes: > I've traced something that is not entirely a bug, but which was a > little surprise for me. It has to do with the extensions that guile > provides to the Scheme language -- namely, uniform vectors and arrays. > > The (ice-9 match) module offers the syntax > (match #(