Justin Collins a écrit :
After a considerable amount of fussing around, I figured out that tail recursion with a function produced with $varargs will not have the tail recursion optimized, at least not how I expected.
[...]

Is there any way to have this work?

This is not possible right now : the main reason is that $varargs go through a C function which then callback the original neko function. And calls VM->C->VM cannot be tail recursive.

Best,
Nicolas

--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to