[plt-scheme] Bug in xexpr/c

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Mon Jan 25 18:01:17 EST 2010

Thomas is correct.

Jay

On Mon, Jan 25, 2010 at 3:11 PM, Thomas Chust <chust at web.de> wrote:
> 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.
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay

"The glory of God is Intelligence" - D&C 93


Posted on the users mailing list.