guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EVAL should not destructively modify its first argument


From: Marius Vollmer
Subject: Re: EVAL should not destructively modify its first argument
Date: 09 May 2001 22:34:27 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102

Matthias Koeppe <address@hidden> writes:

> In the current CVS version, I type:
> 
> guile> (define x '(begin 1))
> guile> (eval x (resolve-module '(guile-user)))
> 1
> guile> x
> (address@hidden 1)
> 
> EVAL destructively modifies its first argument (is this `memoizing'?).
> This is a bug.  The argument passed to EVAL must not be modified.

Fixed!  Thanks!

I introduced the bug when moving around some code and deleted the call
to scm_copy_tree in the process...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]