From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user,gmane.lisp.guile.devel Subject: Re: Patches from ttn's tree to Guile CVS Date: Tue, 09 Mar 2004 21:35:27 +0100 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <874qsx92sw.fsf@zagadka.ping.de> References: <200403032038.07053.clinton@unknownlamer.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1079033396 24607 80.91.224.253 (11 Mar 2004 19:29:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Mar 2004 19:29:56 +0000 (UTC) Cc: guile-user@gnu.org, guile-devel@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 11 20:29:47 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1VsJ-00086i-00 for ; Thu, 11 Mar 2004 20:29:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1VsL-0000tP-Fb for guile-user@m.gmane.org; Thu, 11 Mar 2004 14:29:49 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B0o6d-0006Ur-HH for guile-user@gnu.org; Tue, 09 Mar 2004 15:45:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B0o5o-0006LD-Lv for guile-user@gnu.org; Tue, 09 Mar 2004 15:45:20 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B0o5o-0006Kv-0v for guile-user@gnu.org; Tue, 09 Mar 2004 15:44:48 -0500 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by mx20.gnu.org with esmtp (Exim 4.30) id 1B0nwq-0004D2-JA for guile-user@gnu.org; Tue, 09 Mar 2004 15:35:32 -0500 Original-Received: from dialin.speedway43.dip46.dokom.de ([195.138.43.46] helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 3.36 #3) id 1B0nyP-0003FN-00 for guile-user@gnu.org; Tue, 09 Mar 2004 21:37:10 +0100 Original-Received: (qmail 16499 invoked by uid 1000); 9 Mar 2004 20:35:27 -0000 Original-To: Clinton Ebadi In-Reply-To: <200403032038.07053.clinton@unknownlamer.org> (Clinton Ebadi's message of "Wed, 3 Mar 2004 20:37:53 -0500") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2917 gmane.lisp.guile.devel:3504 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3504 Clinton Ebadi writes: > Is there any chance of these ever being merged? About the extended_e.patch.bz2: Guile CVS has a similar mechanism (inspired by ttn's extended '-e' option). I find this way of doing things cleaner since we now have a single way to directly refer to variables in their modules. The 'design discussion' (cough) starts here: http://mail.gnu.org/archive/html/guile-devel/2003-11/msg00050.html Also see the thread at http://mail.gnu.org/archive/html/guile-user/2003-10/msg00002.html Excerpt from NEWS: ** The '-e' option now 'read's its argument. This is to allow the new '(@ MODULE-NAME VARIABLE-NAME)' construct to be used with '-e'. For example, you can now write a script like #! /bin/sh exec guile -e '(@ (demo) main)' -s "$0" "$@" !# (define-module (demo) :export (main)) (define (main args) (format #t "Demo: ~a~%" args)) * Changes to Scheme functions and syntax ** New syntax '@' and '@@': You can now directly refer to variables exported from a module by writing (@ MODULE-NAME VARIABLE-NAME) For example (@ (ice-9 pretty-print) pretty-print) will directly access the pretty-print variable exported from the (ice-9 pretty-print) module. You don't need to 'use' that module first. You can also use '@' with 'set!'. The related syntax (@@ MODULE-NAME VARIABLE-NAME) works just like '@', but it can also access variables that have not been exported. It is intended only for kluges and temporary fixes and for debugging, not for ordinary code. -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user