[plt-scheme] I can't seem to match structures in the html library

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon May 19 14:37:41 EDT 2003

At Fri, 16 May 2003 13:14:33 -0400, Dan Schmidt wrote:
>   Welcome to MzScheme version 204, Copyright (c) 1995-2003 PLT
>   > (require (lib "match.ss"))
>   > (require (lib "html.ss" "html"))
>   > (define (f x) (html-element? x))
>   > (f 3)
>   #f
>   > (define g (match-lambda [($ html-element attrs) #f]))
>   STDIN::151: match: not a defined structure in: html-element
> Why can't I match on the structure html-element?

The problem is with `provide-signature-elements', which is used in
`(lib "html.ss" "html")'. It doesn't export struct type names declared
in the signature.

This is fixed in CVS.


Posted on the users mailing list.