Re: [Chicken-users] matchable 3.0 and SRFI-9 records

2011-02-15 Thread Alex Shinn
On Sun, Feb 13, 2011 at 6:52 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote:

   It appears that the following pattern no longer works with matchable
 3.0 (Chicken 4.6.5):

Sorry about that, stupid copypaste error, fixed now.

-- 
Alex

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] matchable 3.0 and SRFI-9 records

2011-02-15 Thread Alex Shinn
On Sun, Feb 13, 2011 at 9:52 PM, Felix
fe...@call-with-current-continuation.org wrote:

 Talking about matchable: I always wondered whether this should
 work:

  (match '(...)
    (('...) 'yep))

This is:

  (match (quote ...)
((quote ...) 'yep))

so the pattern is trying to match a list and bind the result to
the quote identifier.  The problem is the pattern language is
ambiguous - does (quote X) get precedence or does (X ...) ?

Currently it's the latter because of the way matchable checks
for ellipsis in match-one and everything else in match-two.

-- 
Alex

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] matchable 3.0 and SRFI-9 records

2011-02-15 Thread Ivan Raikov

  Thanks for restoring my sanity ;-) This was breaking a substantial
amount of code I am working on.

  -Ivan

Alex Shinn alexsh...@gmail.com writes:

 On Sun, Feb 13, 2011 at 6:52 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote:

   It appears that the following pattern no longer works with matchable
 3.0 (Chicken 4.6.5):

 Sorry about that, stupid copypaste error, fixed now.

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] matchable 3.0 and SRFI-9 records

2011-02-13 Thread Alex Shinn
On Sun, Feb 13, 2011 at 6:52 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote:

   It appears that the following pattern no longer works with matchable
 3.0 (Chicken 4.6.5):

[...]

  (match-let ((($ test x y z) (make-test 'a 1 two)))
               (print x y z))

  Error: (match) no matching pattern
[...]

 Does this mean that SRFI-9 record matching is no longer supported?

It should work - the code for record matching is
essentially the same.  I'll look into it.

-- 
Alex

___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users