1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00

*** empty log message ***

This commit is contained in:
Marius Vollmer 2003-11-17 00:38:25 +00:00
parent da769b1937
commit aff7e166e8
3 changed files with 43 additions and 0 deletions

33
NEWS
View file

@ -129,8 +129,41 @@ evaluator turned off, even for interactive sessions.
Previously, the normal evaluator would have been used. Using the
debugging evaluator gives better error messages.
** 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.
** 'while' now provides 'break' and 'continue'
break and continue were previously bound in a while loop, but not

View file

@ -1,3 +1,9 @@
2003-11-17 Marius Vollmer <mvo@zagadka.de>
* scheme-modules.texi: Document '@' and '@@'.
* scripts.texi: Mention that "-e (@ ...)" also works.
2003-11-15 Kevin Ryde <user42@zip.com.au>
* scheme-data.texi (Random): Add *random-state* variable, put note at

View file

@ -1,3 +1,7 @@
2003-11-17 Marius Vollmer <mvo@zagadka.de>
* boot-9.scm (@, @@): New macros.
2003-11-16 Dirk Herrmann <D.Herrmann@tu-bs.de>
* boot-9.scm: Started comment about module system workings.