[plt-scheme] Bug in xexpr/c

From: Thomas Chust (chust at web.de)
Date: Mon Jan 25 17:11:42 EST 2010

troels knak-nielsen wrote:
> [...]
> I ran into this:
> 
>     > (xexpr? '(meta ((content "HTML Tidy for Linux/x86 (vers 7
> December 2008), see www.w3.org") (name generator))))
>     #f
> [...]

Hello,

I believe this behaviour is correct. The problem is not the string value
of the first but the symbol value of the second attribute.

Try

  (xexpr?
   '(meta
     ((content "HTML Tidy for Linux/x86 (vers 7 December 2008), see
www.w3.org")
      (name "generator"))))

or

  (parameterize ([permissive-xexprs #t])
    (xexpr?
     '(meta
       ((content "HTML Tidy for Linux/x86 (vers 7 December 2008), see
www.w3.org")
        (name generator)))))

one of which may be what you are looking for.

Ciao,
Thomas


-- 
When C++ is your hammer, every problem looks like your thumb.


Posted on the users mailing list.