mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-05 23:20:38 +02:00
Deprecate `id'.
This commit is contained in:
parent
6b08d75b56
commit
56426fdbaf
2 changed files with 24 additions and 1 deletions
23
NEWS
23
NEWS
|
@ -288,6 +288,21 @@ objects are usually permanent.
|
||||||
** Escape procedures created by call-with-current-continuation now
|
** Escape procedures created by call-with-current-continuation now
|
||||||
accept any number of arguments, as required by R5RS.
|
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'
|
** New function `make-object-property'
|
||||||
|
|
||||||
This function returns a new `procedure with setter' P that can be used
|
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.
|
Return the contents of an output string port.
|
||||||
|
|
||||||
|
** New function: identity
|
||||||
|
|
||||||
|
Return the argument.
|
||||||
|
|
||||||
|
** Deprecated: id
|
||||||
|
|
||||||
|
Use `identity' instead.
|
||||||
|
|
||||||
** Deprecated: close-all-ports-except.
|
** Deprecated: close-all-ports-except.
|
||||||
|
|
||||||
This was intended for closing ports in a child process after a fork,
|
This was intended for closing ports in a child process after a fork,
|
||||||
|
|
2
RELEASE
2
RELEASE
|
@ -55,7 +55,7 @@ In release 1.6:
|
||||||
gc.c: scm_remember
|
gc.c: scm_remember
|
||||||
string.c: scm_makstr
|
string.c: scm_makstr
|
||||||
- remove deprecated procedures:
|
- 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,
|
- remove deprecated macros: SCM_OUTOFRANGE, SCM_NALLOC, SCM_HUP_SIGNAL,
|
||||||
SCM_INT_SIGNAL, SCM_FPE_SIGNAL, SCM_BUS_SIGNAL, SCM_SEGV_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,
|
SCM_ALRM_SIGNAL, SCM_GC_SIGNAL, SCM_TICK_SIGNAL, SCM_SIG_ORD,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue