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: 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 #