Re: A passing test case

2008-01-26 Thread Gregory Marton
Gregory Marton <[EMAIL PROTECTED]> writes: The differences are not significant. I guess I wanted to make clear in the test case that this isn't something to do with literal rationals, and I didn't want the test case to be printing things to the console. OK, thanks for explaining that. I assu

Re: A passing test case

2008-01-26 Thread Neil Jerram
Gregory Marton <[EMAIL PROTECTED]> writes: > The differences are not significant. I guess I wanted to make clear > in the test case that this isn't something to do with literal > rationals, and I didn't want the test case to be printing things to > the console. OK, thanks for explaining that. I

Re: sending and and or as an argument links their behavior

2008-01-26 Thread Gregory Marton
`or' and `and' are macros, and it doesn't work to pass them as procedure arguments. I forget for the moment what R5RS says; I suspect the above is not allowed, and so perhaps Guile should detect it and report an error. The detailed reason for this is Guile's memoization - but that's not really t

Re: A passing test case

2008-01-26 Thread Gregory Marton
The differences are not significant. I guess I wanted to make clear in the test case that this isn't something to do with literal rationals, and I didn't want the test case to be printing things to the console. Thanks, Grem Gregory Marton <[EMAIL PROTECTED]> writes: Hi folks, I just wante

Re: A passing test case

2008-01-26 Thread Neil Jerram
Gregory Marton <[EMAIL PROTECTED]> writes: > Hi folks, > > I just wanted to send in a test case for a bug that is fixed as of > guile 1.8.2, but recently bit me, and it's just not that obvious to > test for. It is essentially exposed in 1.8.1 by > (let ((x 1/2)) > (display x) > (equal?

Re: sending and and or as an argument links their behavior

2008-01-26 Thread Neil Jerram
Gregory Marton <[EMAIL PROTECTED]> writes: > Hi folks, > > I'm wondering what to make of this behavior, seen in both guile 1.8.1 > and 1.8.3, discovered by my colleague L. Brown Westrick, cc:ed above: > > guile> (define (apply2 f a b) (f a b)) > guile> (apply2 or #t #f) > #t > guile> (apply2 and #

Re: comparing procedures

2008-01-26 Thread Neil Jerram
Gregory Marton <[EMAIL PROTECTED]> writes: > Hi folks, > > I'm trying to write a meaningful comparison operator for > procedures. Out of interest, why? > Clearly this wants more than procedure-source, because > variables in the source may be bound to different values in the > procedure-environme