guile-devel
[Top][All Lists]
Advanced

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

Re: Commercial development


From: Marius Vollmer
Subject: Re: Commercial development
Date: Sun, 05 Jun 2005 23:41:22 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Neil Jerram <address@hidden> writes:

> Is this a good fix for r5rs_pitfall 1.1?

scm_copy_tree is too much, since it makes the following code fail:

   (let ((a '(1 2 3))) (letrec ((x a) (y a)) (eq? x y)))

We should not copy the values themselves, just the storage cells;
thus, scm_list_copy is the right thing here.

But should we make that change?  I am not sure.  It causes some
significant run-time overhead for an obscure benefit.  For now I'll
just put in some comments in eval.c and r5rs_pitfall.test.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

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