From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: I don't want to maintain this Date: Tue, 29 Nov 2005 09:16:06 +0100 Organization: LAAS-CNRS Message-ID: <8764qbuawp.fsf@laas.fr> References: <200511272025.32395.bruce.korb@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133259294 12425 80.91.229.2 (29 Nov 2005 10:14:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 10:14:54 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Nov 29 11:14:40 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eh0tq-0007YN-Mf for guile-devel@m.gmane.org; Tue, 29 Nov 2005 09:31:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eh0tp-00067p-H4 for guile-devel@m.gmane.org; Tue, 29 Nov 2005 03:31:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Eh0f5-00088D-8h for guile-devel@gnu.org; Tue, 29 Nov 2005 03:16:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Eh0f2-00085j-7N for guile-devel@gnu.org; Tue, 29 Nov 2005 03:16:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Eh0ez-00084Z-WF for guile-devel@gnu.org; Tue, 29 Nov 2005 03:16:22 -0500 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Eh0ez-000738-ML for guile-devel@gnu.org; Tue, 29 Nov 2005 03:16:22 -0500 Original-Received: by laas.laas.fr (8.13.1/8.13.4) with SMTP id jAT8GGgb021010; Tue, 29 Nov 2005 09:16:17 +0100 (CET) Original-To: Bruce Korb X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 9 Frimaire an 214 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: Bruce Korb , guile-devel@gnu.org In-Reply-To: <200511272025.32395.bruce.korb@gmail.com> (Bruce Korb's message of "Sun, 27 Nov 2005 20:25:32 -0800") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-Spam-Score: 0 () X-Scanned-By: MIMEDefang at CNRS-LAAS 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:5424 Archived-At: Hi, Bruce Korb writes: > Grumble, grumble. Anyway, this belongs in your code. We argued about this > before and someone said, "well, you could do it in any of several ways, > so we won't do it at all." This function is entirely equivalent to > "scm_c_eval_string" except that error results show file name and line > number. Sorry if I'm just re-stating what you were already answered: Can't you implement this as a small Scheme procedure? Something along the lines of: (read-enable 'positions) (define (eval-from-file file) (with-input-from-file file (lambda () (let loop ((sexp (read)) (result #f)) (if (eof-object? sexp) result (begin (format #t "evaluating `~a' from ~a:~a:~a~%" sexp (port-filename (current-input-port)) (source-property sexp 'line) (source-property sexp 'column)) (loop (read) (primitive-eval sexp)))))))) This would certainly be easier for you to maintain. Thanks, Ludovic. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel