unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Odd Behavior
@ 2011-01-31 18:44 Noah Lavine
  2011-01-31 19:20 ` Noah Lavine
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Noah Lavine @ 2011-01-31 18:44 UTC (permalink / raw)
  To: guile-devel

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)
    (syntax-case x ()
      (_ (codegen)))))

(test)

Then I opened guile and did (load "test.scm"), and got this:

;;; 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!

As far as I can tell, this means that Guile tried to compile test.scm,
failed, and then interpreted it correctly. Is that right? If so, is
there a way to get more information about where the wrong-type-arg
error was thrown?

I'd also love to know any way to get more information about errors
that happen during macroexpansion in general. I've been having quite a
bit of trouble figuring out what is going wrong at different points in
peg.scm, while I'm trying to convert it to syntax-case.

Thanks,
Noah



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-31 20:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31 18:44 Odd Behavior Noah Lavine
2011-01-31 19:20 ` Noah Lavine
2011-01-31 19:36   ` Noah Lavine
2011-01-31 19:41 ` Andy Wingo
2011-01-31 20:12 ` Andy Wingo
2011-01-31 20:09   ` Noah Lavine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).