mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Manual: Don't promise to signal an error for an illegal 'letrec'.
Reported by Nikita Karetnikov <nikita@karetnikov.org>. * doc/ref/api-binding.texi (Local Bindings): Remove the incorrect claim that improperly accessing a letrec-bound variable during evaluation of its initializers will necessarily cause an error to be signalled.
This commit is contained in:
parent
3c8f2ae958
commit
51607806ec
1 changed files with 2 additions and 2 deletions
|
@ -218,9 +218,9 @@ variables.
|
||||||
|
|
||||||
@lisp
|
@lisp
|
||||||
(letrec ((a 42)
|
(letrec ((a 42)
|
||||||
(b (+ a 10)))
|
(b (+ a 10))) ;; Illegal access
|
||||||
(* a b))
|
(* a b))
|
||||||
@result{} ;; Error: unbound variable: a
|
;; The behavior of the expression above is unspecified
|
||||||
|
|
||||||
(letrec* ((a 42)
|
(letrec* ((a 42)
|
||||||
(b (+ a 10)))
|
(b (+ a 10)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue