logo       

Re: Can't make a stack from a continuation: msg#00119

lisp.guile.devel

Subject: Re: Can't make a stack from a continuation

Marius Vollmer wrote:
Marius Vollmer <marius.vollmer@xxxxxxxxxxxxxxx> writes:


Neil Jerram <neil@xxxxxxxxxxxxxxxxx> 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!


_______________________________________________
Bug-guile mailing list
Bug-guile@xxxxxxx
http://lists.gnu.org/mailman/listinfo/bug-guile



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise