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:
parent
735249513a
commit
af1c6e424f
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue