1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 13:20:26 +02:00

Deprecate `id'.

This commit is contained in:
Keisuke Nishida 2001-04-15 22:55:49 +00:00
parent 6b08d75b56
commit 56426fdbaf
2 changed files with 24 additions and 1 deletions

23
NEWS
View file

@ -288,6 +288,21 @@ objects are usually permanent.
** Escape procedures created by call-with-current-continuation now
accept any number of arguments, as required by R5RS.
** New function `call-with-deprecation'
Call a thunk, displaying a deprecation message at the first call:
(define (id x)
(call-with-deprecation "`id' is deprecated. Use `identity' instead."
(lambda ()
(identity x))))
guile> (id 1)
;; `id' is deprecated. Use `identity' instead.
1
guile> (id 1)
1
** New function `make-object-property'
This function returns a new `procedure with setter' P that can be used
@ -487,6 +502,14 @@ The data can then be retrieved by `get-output-string'.
Return the contents of an output string port.
** New function: identity
Return the argument.
** Deprecated: id
Use `identity' instead.
** Deprecated: close-all-ports-except.
This was intended for closing ports in a child process after a fork,

View file

@ -55,7 +55,7 @@ In release 1.6:
gc.c: scm_remember
string.c: scm_makstr
- remove deprecated procedures:
boot-9.scm:eval-in-module
boot-9.scm: eval-in-module, id
- remove deprecated macros: SCM_OUTOFRANGE, SCM_NALLOC, SCM_HUP_SIGNAL,
SCM_INT_SIGNAL, SCM_FPE_SIGNAL, SCM_BUS_SIGNAL, SCM_SEGV_SIGNAL,
SCM_ALRM_SIGNAL, SCM_GC_SIGNAL, SCM_TICK_SIGNAL, SCM_SIG_ORD,