From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thomas Mulcahy Newsgroups: gmane.lisp.guile.user Subject: evaluating a file with out side effects Date: Sun, 1 Jun 2003 20:25:26 -0400 (EDT) Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <20030602002527.66382.qmail@web20501.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054513546 4169 80.91.224.249 (2 Jun 2003 00:25:46 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2003 00:25:46 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jun 02 02:25:44 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Md8y-00014w-00 for ; Mon, 02 Jun 2003 02:25:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Md9u-00058h-Dw for guile-user@m.gmane.org; Sun, 01 Jun 2003 20:26:42 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19Md9I-0004ID-PO for guile-user@gnu.org; Sun, 01 Jun 2003 20:26:04 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19Md8q-0003cY-2Q for guile-user@gnu.org; Sun, 01 Jun 2003 20:25:41 -0400 Original-Received: from web20501.mail.yahoo.com ([216.136.226.136]) by monty-python.gnu.org with smtp (Exim 4.20) id 19Md8i-00033n-CY for guile-user@gnu.org; Sun, 01 Jun 2003 20:25:28 -0400 Original-Received: from [129.97.251.39] by web20501.mail.yahoo.com via HTTP; Sun, 01 Jun 2003 20:25:26 EDT Original-To: guile-user@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2015 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2015 Hi, I'm attempting to use scheme to generate HTML for a page like this: http://okmij.org/ftp/Scheme/xml.scm (See http://okmij.org/ftp/Scheme/xml.html for the HTML version). To do this, I need to evaluate the contents of a file and get the result. The guile load procedure returns unspecified however, instead of the result of evaluating the file. I can see how it would be possible to evaluate each s-expression in the file but this seems a bit awkward and would have side effects (definitions in the file might overwrite my own definitions). What is the best way to do this? Thanks, Thomas ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user