|
From: | Neil Jerram |
Subject: | Re: Can't make a stack from a continuation |
Date: | Fri, 24 Dec 2004 23:05:25 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 |
Marius Vollmer wrote:
Marius Vollmer <address@hidden> writes:Neil Jerram <address@hidden> writes:And one more problem ... the same problem exists in CVS head, but a similar patch doesn't fix it ... still investigating.I'm looking into this as well, now. The fix you did for 1.6 looks good, although I don't understand it completely yet. I will try to come up with my own patch to CVS head.Here it is. I have already applied it to CVS. I think a similar scheme can be used for 1.6, too: i.e., move the offset calculation into scm_make_continuation. Neil, do you want to fix 1.6 yourself? [patch]
This change (calculating and storing the offset in scm_make_continuation) makes sense, but I'd like also to understand where the bug was in my version (using offset = (SCM_CONTREGS (stack) -> stack) - SCM_BASE (stack);) and why my code worked in 1.6 but not in head. Would you mind explaining?
Thanks, Neil PS. Merry Christmas!
[Prev in Thread] | Current Thread | [Next in Thread] |