From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.bugs Subject: Interpreter Dies Given Malformed Module Declaration Date: Mon, 15 Nov 2010 01:08:22 -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 1289801322 11953 80.91.229.12 (15 Nov 2010 06:08:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 15 Nov 2010 06:08:42 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Nov 15 07:08:38 2010 Return-path: Envelope-to: guile-bugs@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 1PHsF0-0001E7-Gw for guile-bugs@m.gmane.org; Mon, 15 Nov 2010 07:08:34 +0100 Original-Received: from localhost ([127.0.0.1]:35594 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHsEz-0002Q3-GV for guile-bugs@m.gmane.org; Mon, 15 Nov 2010 01:08:33 -0500 Original-Received: from [140.186.70.92] (port=50249 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHsEs-0002Py-0t for bug-guile@gnu.org; Mon, 15 Nov 2010 01:08:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHsEq-0005xl-RY for bug-guile@gnu.org; Mon, 15 Nov 2010 01:08:25 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:32776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHsEq-0005xS-NQ for bug-guile@gnu.org; Mon, 15 Nov 2010 01:08:24 -0500 Original-Received: by wyf23 with SMTP id 23so5802875wyf.0 for ; Sun, 14 Nov 2010 22:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=wJZ16BT/wvlojhRYfF9ZiWehZZrdd/+2vnETa2wOWtw=; b=sXRcuzU5i25vLQEjgtYTj6gYs3XpKfOPguoM8ALwddptldghFsRk/TQXmZ68StUIP2 c8SSIJ+83XE/O717ck33+NTR0R/YYf03MW9KbxGZ2wcBV22nh+SmPLwqHK+NTePjo1e5 d65nHgyWylMHQlST9bR9Z/Zr7KA+QJs+aPUAk= 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=AW+XrApR8luTgjFloQjS/j3PG3Fbgra8k9xzFoO0YWuf/+ZoqUwsFY2GytDblfmWMk AgwEQin2DeoBlr3Nc+7oJH43pxRBnbqsKWZ6TBegAC57wAx+OsveSq63qSloZAoltK0y eaPxiVqIujxY7rDg6DPwq091JMCcNywUW3oOM= Original-Received: by 10.216.180.69 with SMTP id i47mr4854335wem.37.1289801302227; Sun, 14 Nov 2010 22:08:22 -0800 (PST) Original-Received: by 10.216.237.34 with HTTP; Sun, 14 Nov 2010 22:08:22 -0800 (PST) X-Google-Sender-Auth: nwHpxon81dWuZvq1hx5Rpar2fmI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4851 Archived-At: Hello all, Running the following script with 'guile -l ' #!/usr/bin/guile !# (define-module (test-module) #:export should-be-a-list) Gives this result: ;;; WARNING: compilation of load-test.scm failed: ;;; key wrong-type-arg, throw_args ("append" "Wrong type argument in position ~A (expecting ~A): ~S" (1 "empty list" should-be-a-list) (should-be-a-list)) Backtrace: In ice-9/boot-9.scm: 170: 16 [catch #t # ...] In unknown file: ?: 15 [catch-closure] In ice-9/boot-9.scm: 62: 14 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 389: 13 [eval # #] In ice-9/boot-9.scm: 1840: 12 [save-module-excursion #] 1149: 11 [load "load-test.scm" #f] 1047: 10 [%start-stack load-stack ...] 1052: 9 [#] In unknown file: ?: 8 [primitive-load "load-test.scm"] In ice-9/eval.scm: 458: 7 [# #] In ice-9/psyntax.scm: 908: 6 [chi-top-sequence ((#(syntax-object let # ...) (#) (# #) ...)) () ...] 1159: 5 [chi-top (#(syntax-object let # ...) (#) (# #) ...) () ...] In ice-9/eval.scm: 374: 4 [eval # ()] In ice-9/boot-9.scm: 2446: 3 [process-define-module ((test-module) #:filename "load-test.scm" ...)] In unknown file: ?: 2 [append {should-be-a-list} ()] In ice-9/boot-9.scm: 115: 1 [# wrong-type-arg ...] In unknown file: ?: 0 [catch-closure wrong-type-arg "append" ...] ERROR: In procedure append: ERROR: Wrong type argument in position 1 (expecting empty list): should-be-a-list Whereas I think a better result would be this: Error compiling load-test.scm: expected list after #:export clause, instead got 'should-be-a-list. I'm not quite sure how to make this happen yet, so if anyone knows, please let me know. Noah