1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 03:30:27 +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:
Mark H Weaver 2013-04-09 13:54:39 -04:00
parent 3c8f2ae958
commit 51607806ec

View file

@ -218,9 +218,9 @@ variables.
@lisp
(letrec ((a 42)
(b (+ a 10)))
(b (+ a 10))) ;; Illegal access
(* a b))
@result{} ;; Error: unbound variable: a
;; The behavior of the expression above is unspecified
(letrec* ((a 42)
(b (+ a 10)))