bug-guile
[Top][All Lists]
Advanced

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

bug#17096: Guile 1.8: syntax-case messed up when "void" is defined


From: David Kastrup
Subject: bug#17096: Guile 1.8: syntax-case messed up when "void" is defined
Date: Wed, 26 Mar 2014 12:51:38 +0100

When running the following program

(define void 6)
(use-modules (ice-9 syncase))
(define-syntax absurd
  (lambda (x)
    (syntax-case x ()
      ((_ var) (syntax var)))))
through Guile 1.8, I get the error

ERROR: Wrong type to apply: 6

The same appears to go through without problem (apart from the
deprecation warning for the module) on Guile 2.0.

Is there any workaround?  Apart from the obvious "don't define void"
which is not a good option for the actual application at hand since the
function is part of a user-level API.  And it's not like "void" is
documented as being anything here...

-- 
David Kastrup

reply via email to

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