Eigenstate: myrddin-dev mailing list

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

Re: something wrong in recursive functions inside a function


On Sat, 26 May 2018 23:13:29 +0800, vimacs <vimacs.hacks@xxxxxxxxx> wrote:

> So is there something wrong with using recursive functions inside a
> function?
 
That was a fun bug.

Turned out that we were capturing the closure early, and the function
pointer was uninitialized -- and because we had decided it was a
closure, the function was itself being captured.

It *also* shouldn't be captured, since it's a const, but that's a separate
optimization that I'm going to do today.

-- 
    Ori Bernstein

References:
something wrong in recursive functions inside a functionvimacs <vimacs.hacks@xxxxxxxxx>