You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It has nothing to do with the GC because if you run it with GC_DONT_GC=1 ... you still get a crash. The stack mentions the GC because the GC call probably needs more stack levels and that's where the error happens.
I say we should close this and relate it to #271 (stack overflows should say "stack overflow" when such error happens).
@asterite Ok, but Ruby does not support Tail Call Optimization, so I'm not surprised get stack overflow, seems Crystal support it, fib(10000) is no problem.
Simple fibonacci function like this:
Got below Error:
Use Crystal 0.15.0, LLVM 3.6.2.
BTW, do you think syntax like
def fib(n : Int32, ret1 : BigInt = BigInt.new("0"), ret2 : BigInt = BigInt.new("1"))
seems too looooong?The text was updated successfully, but these errors were encountered: