From: Marius Vollmer <mvo@zagadka.de>
Subject: New syntax (@ MODULE-NAME VARIABLE-NAME) committed
Date: Mon, 17 Nov 2003 15:44:06 +0100 [thread overview]
Message-ID: <87fzgnrr61.fsf@zagadka.ping.de> (raw)
In-Reply-To: <87brrgw32m.fsf@zagadka.ping.de> (Marius Vollmer's message of "Thu, 13 Nov 2003 19:12:01 +0100")
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
prev parent reply other threads:[~2003-11-17 14:44 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-13 18:12 New syntax: (: MODULE-NAME VARIABLE-NAME) Marius Vollmer
2003-11-13 19:47 ` Neil Jerram
2003-11-13 20:58 ` Marius Vollmer
2003-11-14 21:04 ` Neil Jerram
2003-11-15 15:19 ` Marius Vollmer
2003-11-15 19:22 ` Neil Jerram
2003-11-16 17:31 ` Marius Vollmer
2003-11-16 18:20 ` Neil Jerram
2003-11-16 18:38 ` Neil Jerram
2003-11-16 20:36 ` Marius Vollmer
2003-11-17 20:18 ` Neil Jerram
2003-11-17 21:34 ` Marius Vollmer
2003-11-16 20:28 ` Marius Vollmer
2003-11-14 22:09 ` Mikael Djurfeldt
2003-11-15 15:10 ` Marius Vollmer
2003-11-17 2:00 ` Mikael Djurfeldt
2003-11-17 14:41 ` Marius Vollmer
2003-11-16 8:02 ` Dirk Herrmann
2003-11-17 14:44 ` Marius Vollmer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fzgnrr61.fsf@zagadka.ping.de \
--to=mvo@zagadka.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).