It is a bit tricky. The syntax 'x is short for (quote x). This expansion is done by the reader without looking at the context. So, what the evaluator really sees is
(case 'x ((quote x) #t) (else #f))
This is indeed in the form required by R5RS, although probably only by accident. As expected, the following also evaluates to true:
(case 'quote ('x #t) (else #f)) => #t
Also (and don't try this at home kids):
(define 'x (* x x)) '2 => 4
And presumably (or in my view) this is all fine, except for the last example, where Guile should signal an error or at least give a warning. Right?
Neil
_______________________________________________ Guile-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/guile-user
