[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile/guile-core NEWS
From: |
Thien-Thi Nguyen |
Subject: |
guile/guile-core NEWS |
Date: |
Sat, 08 Sep 2001 18:09:24 -0700 |
CVSROOT: /cvs
Module name: guile
Changes by: Thien-Thi Nguyen <address@hidden> 01/09/08 18:09:24
Modified files:
guile-core : NEWS
Log message:
Add `arity' enhancement news.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/guile/guile-core/NEWS.diff?cvsroot=OldCVS&tr1=1.317&tr2=1.318&r1=text&r2=text
Patches:
Index: guile/guile-core/NEWS
diff -u guile/guile-core/NEWS:1.317 guile/guile-core/NEWS:1.318
--- guile/guile-core/NEWS:1.317 Sat Aug 25 12:52:53 2001
+++ guile/guile-core/NEWS Sat Sep 8 18:09:24 2001
@@ -776,6 +776,32 @@
This enables single-char options to have adjoining arguments as long as their
constituent characters are not potential single-char options.
+** (ice-9 session) procedure `arity' now works with (ice-9 optargs) `lambda*'
+
+The `lambda*' and derivative forms in (ice-9 optargs) now set a procedure
+property `arglist', which can be retrieved by `arity'. The result is that
+`arity' can give more detailed information than before:
+
+Before:
+
+ guile> (use-modules (ice-9 optargs))
+ guile> (define* (foo #:optional a b c) a)
+ guile> (arity foo)
+ 0 or more arguments in `lambda*:G0'.
+
+After:
+
+ guile> (arity foo)
+ 3 optional arguments: `a', `b' and `c'.
+ guile> (define* (bar a b #:key c d #:allow-other-keys) a)
+ guile> (arity bar)
+ 2 required arguments: `a' and `b', 2 keyword arguments: `c'
+ and `d', other keywords allowed.
+ guile> (define* (baz a b #:optional c #:rest r) a)
+ guile> (arity baz)
+ 2 required arguments: `a' and `b', 1 optional argument: `c',
+ the rest in `r'.
+
* Changes to the C interface
** Types have been renamed from scm_*_t to scm_t_*.
- guile/guile-core NEWS,
Thien-Thi Nguyen <=
- guile/guile-core NEWS, Thien-Thi Nguyen, 2001/09/08
- guile/guile-core NEWS, Mikael Djurfeldt, 2001/09/20
- guile/guile-core NEWS, Mikael Djurfeldt, 2001/09/20
- guile/guile-core NEWS, Mikael Djurfeldt, 2001/09/22
- guile/guile-core NEWS, Mikael Djurfeldt, 2001/09/22