1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-01 09:50:19 +02:00

peval: Clarify `pure-expression?'.

* module/language/tree-il/optimize.scm (peval)[pure-expression?]:
  Clarify the comment.
This commit is contained in:
Ludovic Courtès 2011-09-13 23:30:22 +02:00
parent 735249513a
commit af1c6e424f

View file

@ -99,8 +99,9 @@ it should be called before `fix-letrec'."
(define (pure-expression? x)
;; Return true if X is pure---i.e., if it is known to have no
;; effects and does not allocate new storage. Note: <module-ref> is
;; not "pure" because it loads a module as a side-effect.
;; effects and does not allocate storage for a mutable object.
;; Note: <module-ref> is not "pure" because it loads a module as a
;; side-effect.
(let loop ((x x))
(match x
(($ <void>) #t)