Hello all,
I ran into an error message in Guile, and I'm not sure how to track
down the cause of it. I used a file called test.scm with the following
contents:
#!guile
!#
(define (codegen)
#`(let ((message hello, world!\n))
(display message)))
(define-syntax test
(lambda (x)
Hello again,
I tried finding the error by running compile-file, but I got the
following Guile session:
scheme@(guile-user) (compile-file test.scm)
ice-9/boot-9.scm:119:21: Wrong type to apply: #f
Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) ,bt
On Mon 31 Jan 2011 19:44, Noah Lavine noah.b.lav...@gmail.com writes:
(define (codegen)
#`(let ((message hello, world!\n))
(display message)))
(define-syntax test
(lambda (x)
(syntax-case x ()
(_ (codegen)
(test)
Guile tried to compile test.scm, failed, and
On Mon 31 Jan 2011 19:44, Noah Lavine noah.b.lav...@gmail.com writes:
;;; compiling test.scm
;;; WARNING: compilation of test.scm failed:
;;; key wrong-type-arg, throw_args (#f Wrong type to apply: ~S (#f) (#f))
hello, world!
Now it does:
scheme@(guile-user) (load /tmp/test.scm)
;;;
Wow, great!
On Mon, Jan 31, 2011 at 3:12 PM, Andy Wingo wi...@pobox.com wrote:
On Mon 31 Jan 2011 19:44, Noah Lavine noah.b.lav...@gmail.com writes:
;;; compiling test.scm
;;; WARNING: compilation of test.scm failed:
;;; key wrong-type-arg, throw_args (#f Wrong type to apply: ~S (#f) (#f))