From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.devel Subject: Odd Behavior Date: Mon, 31 Jan 2011 13:44:28 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1296499723 17771 80.91.229.12 (31 Jan 2011 18:48:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2011 18:48:43 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 31 19:48:39 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pjynm-0004on-SQ for guile-devel@m.gmane.org; Mon, 31 Jan 2011 19:48:39 +0100 Original-Received: from localhost ([127.0.0.1]:53431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pjynm-0000iP-Dx for guile-devel@m.gmane.org; Mon, 31 Jan 2011 13:48:38 -0500 Original-Received: from [140.186.70.92] (port=40230 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pjyjm-0006hT-7P for guile-devel@gnu.org; Mon, 31 Jan 2011 13:44:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pjyjl-0003Mm-6N for guile-devel@gnu.org; Mon, 31 Jan 2011 13:44:30 -0500 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:50755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pjyjl-0003Mc-3E for guile-devel@gnu.org; Mon, 31 Jan 2011 13:44:29 -0500 Original-Received: by yxl31 with SMTP id 31so2673060yxl.0 for ; Mon, 31 Jan 2011 10:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:date:x-google-sender-auth :message-id:subject:from:to:content-type; bh=WRpw2aTTj9BBfoGaexY0qv06TsCzylWeeLZld6fDvyU=; b=KmEBBqfK6bC6hz9lC83RvoCg34T7RaczukJFgRmmsJUqBhBRqZ+zIOADozZvP+QbK+ mHScvDuq+ppao7Rafw9j1pjhU0H3kNI34tvjqeXB4HzVw08bCcxX0dlKW5LRFSf+xMoF KEXDIPkV3mW0bjtgogACs3g8kxxGylz+KLWw4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=iev8iTHXR4e60yk5cyN0AB9VIOPGCPstqgMdRzpy0cJqpZYU1MFt/XoMaGy4UNlayk P61M2opy7uDJUv5RgigqZSOGcH56darNbPXt1lC0B0Mma+eJIlZyRFIa4DV6RNRwWjHL 3uGoVP9013MNLbhQLO3Ut1k9qe3LrIpKPVYnE= Original-Received: by 10.236.110.172 with SMTP id u32mr13283041yhg.63.1296499468057; Mon, 31 Jan 2011 10:44:28 -0800 (PST) Original-Received: by 10.147.136.20 with HTTP; Mon, 31 Jan 2011 10:44:28 -0800 (PST) X-Google-Sender-Auth: vsqKIfTeXr7MpenuJSSF7nkUaJU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.213.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11448 Archived-At: 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