chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] more: news from the valgrind front - another test ca


From: Jörg F . Wittenberger
Subject: Re: [Chicken-users] more: news from the valgrind front - another test case
Date: 07 Oct 2011 22:49:42 +0200

On Oct 7 2011, Alan Post wrote:

Given the odd behavior you're experiencing, I would suggest
expanding your test case:

Good point.  Here the results:

Now watch the interesting value (should be all 4 true a/a,i/i,a/i,i/a):
#t#t#f#f

That is:
(equal? *all-chars* *all-chars*)
=> #t
(equal? `(/ ,(integer->char 0)
                     ,(integer->char #xD7FF)
                     ,(integer->char #xE000)
                     ,(integer->char #x10FFFF))
                 `(/ ,(integer->char 0)
                     ,(integer->char #xD7FF)
                     ,(integer->char #xE000)
                     ,(integer->char #x10FFFF)))
=> #t
(equal? *all-chars*
                 `(/ ,(integer->char 0)
                     ,(integer->char #xD7FF)
                     ,(integer->char #xE000)
                     ,(integer->char #x10FFFF)))
=> #f
(equal? `(/ ,(integer->char 0) ,(integer->char #xD7FF)
     ,(integer->char #xE000) ,(integer->char #x10FFFF))
*all-chars* )
=> #f

Or: comparison of just initialised value fails to be equal?
to the literal value.

Can you/anyone reproduce this result?

(So far valgrind not envolved, just this debug code in irregex-core.scm!)


/Jörg







reply via email to

[Prev in Thread] Current Thread [Next in Thread]