From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Difference Between REPL and Script Usage? Date: Sun, 30 Jan 2011 13:21:24 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1296391094 7410 80.91.229.12 (30 Jan 2011 12:38:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 Jan 2011 12:38:14 +0000 (UTC) Cc: guile-devel@gnu.org To: Noah Lavine Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jan 30 13:38:10 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 1PjWXh-0000EO-Q4 for guile-devel@m.gmane.org; Sun, 30 Jan 2011 13:38:10 +0100 Original-Received: from localhost ([127.0.0.1]:33164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjWXh-0003R6-9B for guile-devel@m.gmane.org; Sun, 30 Jan 2011 07:38:09 -0500 Original-Received: from [140.186.70.92] (port=50300 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjWWx-0002wJ-Vq for guile-devel@gnu.org; Sun, 30 Jan 2011 07:37:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjWWq-0002dJ-Qf for guile-devel@gnu.org; Sun, 30 Jan 2011 07:37:23 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:57050 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjWWq-0002d8-OX for guile-devel@gnu.org; Sun, 30 Jan 2011 07:37:16 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 497CA32DF; Sun, 30 Jan 2011 07:38:08 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=nKOHZLsV2bGUZ7o8JjBi3WMR3Jk=; b=H9WS9b xTP9u+qw9hJTLWuqp9l5ENztKt43rg7RV2yK248VrrN0JsTV6eZZEkmdoVQLUkSW JGKMxjMySrrGEPedUC/TYk30tow3d8mnkkPSu6dySbSEl1Dy9ZKZ5b6ZQCrzLfaU 7xWa5fElldmhnyQRsn9WcARSAp8uE3958H1ts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=gvJqJ17vqHFdhYk9pAMrn5CP2BeoDv9s Pvxk+qmD1N+mLVf5o1TbqPvfhI94YEzQx7p1eutW17Xg+QoDNMRy7b2ZIAl4qq6v EgiOcHCnWeOhZkW7Nh4eXw0BMl2cM6ggfbimBzGG0pGIswtwINSJhHrHk5wslFy0 nP4vjqdHUEQ= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 3491732DE; Sun, 30 Jan 2011 07:38:07 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 91FD232D7; Sun, 30 Jan 2011 07:38:05 -0500 (EST) In-Reply-To: (Noah Lavine's message of "Sat, 29 Jan 2011 12:38:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: C9EA5C32-2C6D-11E0-83DB-BC4EF3E828EC-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:11426 Archived-At: On Sat 29 Jan 2011 18:38, Noah Lavine writes: > ./check-guile peg.test > ;;; note: source file /Users/noah/Desktop/guile/guile/module/ice-9/peg.scm > ;;; newer than compiled > /Users/noah/Desktop/guile/guile/cache/guile/ccache/2.0-0.T-LE-8/Users/noah/Desktop/guile/guile/module/ice-9/peg.scm.go Here, this indicates that we are interpreting peg.scm. > ERROR: Unbound variable: safe-bind-f So somehow under interpretation, peg.scm relies on the value of something that isn't defined yet. BTW: when you submit your peg.scm patches, can you rebase them on top of wip-mlucy? That is mlucy's changes, but rebased onto a master of a few days ago. > But got an error. To see what was wrong, I opened guile and did > "(use-modules (ice-9 peg))". That worked fine. That probably auto-compiled peg.scm, then ran it. > noah-lavines-macbook:guile noah$ ./check-guile peg.test And now the test suite worked, as it was using the compiled peg.scm. I think it's one of your standard eval-when style bugs. Unfortunately backtraces from interpreted code are currently terrible. Regards, Andy -- http://wingolog.org/