From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: New syntax (@ MODULE-NAME VARIABLE-NAME) committed Date: Mon, 17 Nov 2003 15:44:06 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87fzgnrr61.fsf@zagadka.ping.de> References: <87brrgw32m.fsf@zagadka.ping.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069080666 2671 80.91.224.253 (17 Nov 2003 14:51:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2003 14:51:06 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Nov 17 15:51:03 2003 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 1ALkiU-0003Mg-00 for ; Mon, 17 Nov 2003 15:51:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALlbE-000186-TE for guile-devel@m.gmane.org; Mon, 17 Nov 2003 10:47:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ALlay-00015w-TK for guile-devel@gnu.org; Mon, 17 Nov 2003 10:47:20 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ALlZF-00009P-8u for guile-devel@gnu.org; Mon, 17 Nov 2003 10:46:04 -0500 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ALlZE-000095-Cg for guile-devel@gnu.org; Mon, 17 Nov 2003 10:45:32 -0500 Original-Received: from dialin.speedway42.dip10.dokom.de ([195.138.42.10] helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 3.36 #3) id 1ALkeZ-00075K-00 for guile-devel@gnu.org; Mon, 17 Nov 2003 15:46:59 +0100 Original-Received: (qmail 8820 invoked by uid 1000); 17 Nov 2003 14:44:06 -0000 Original-To: guile-devel@gnu.org In-Reply-To: <87brrgw32m.fsf@zagadka.ping.de> (Marius Vollmer's message of "Thu, 13 Nov 2003 19:12:01 +0100") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3040 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3040 I have committed the following changes. (The unclean bit about changing the interpretation of ':' is gone.) ** 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-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel