guile-devel
[Top][All Lists]
Advanced

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

A proper tail version of with-fluids


From: Stefan Israelsson Tampe
Subject: A proper tail version of with-fluids
Date: Wed, 2 Jan 2013 12:37:03 +0100

Hi using e.g.
(define f (lambda (n) (if (= n 0) (fluid-ref a) (with-fluids ((a n)) (f (- n 1))))))

with the modified VM:
scheme@(guile-user)> (f 10000000)
$2 = 1

with the old VM, it craches. It works!

Cool, but I need to verify that continuation will not break. I did the mod
on the RTL VM so I really must test that out more thoroughly.

Have fun!

/Stefan


reply via email to

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