[plt-scheme] problem with match.ss and contracts
On Wed, May 12, 2004 at 02:30:15PM -0400, Sam Tobin-Hochstadt wrote:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> I'm using match.ss and contracts, and getting the following very strange
> error:
>
> procedure application: expected procedure, given:
> #<struct:flat-contract>; arguments were: ()
>
> On a bit of code that looks like this:
>
> (match-lambda*
> [(...... (? string? key) ......) ....]
It turned out that the problem was in a different match-lambda clause,
where I tried to use (listof string?) as a predicate. However, it is
definitely a bug that DrScheme points to the wrong place in the error.
sam th