[plt-scheme] Bug in pattern matching with failure procedures and multiple return values

From: Sam TH (samth at ccs.neu.edu)
Date: Sat Nov 15 21:22:29 EST 2008

Yeah, that definitely looks like a bug.  Can you file it in the bug tracker?

Thanks,
sam th

On Fri, Nov 14, 2008 at 2:47 PM, Thomas Chust <chust at web.de> wrote:
> Hello,
>
> I ran into a problem when using failure procedures in a match expression
> that was intended to return multiple values. Here is a simplified example:
>
> % mzscheme
> Welcome to MzScheme v4.1.2 [3m], Copyright (c) 2004-2008 PLT Scheme Inc.
>> (match 'foo [_ (=> skip) (skip)] [_ (values 1 2)])
> context expected 1 value, received 2 values: 1 2
>
> The error only occurs if the declared failure procedure has actually
> been called, which feels very much like a bug :-(
>
> cu,
> Thomas
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>



-- 
sam th
samth at ccs.neu.edu


Posted on the users mailing list.