Re: [Scilab-users] How to list the content of the recursion stack?

2021-05-06 Thread Jean-Yves Baudais
Hi, > from > --> currentMaxDepth = recursionlimit() > currentMaxDepth = > 1000. Thanks Samuel, I didn't know this function. So I face a problem (a bug?): Scilab cratches with segfault but without reaching the recursionlimit. Here the used three functions function out=test_l(in) if in==0 then

Re: [Scilab-users] How to list the content of the recursion stack?

2021-05-06 Thread Samuel Gougeon
Hello Jean-Yves, Le 06/05/2021 à 11:13, Jean-Yves Baudais a écrit : .../... test_ll improves a bit test_l because it uses tail call, but the max without seg.fault is far from 1000. Where does this limit of 1000 come from? from --> currentMaxDepth = recursionlimit()  currentMaxDepth  =    100

Re: [Scilab-users] How to list the content of the recursion stack?

2021-05-06 Thread Jean-Yves Baudais
Hi, > [...] When we get a Recursion limit reached (1000) message [...] I'm not a wizard on programming, not at all, and recursion call it's all the time complex for me to use. Anyway, I tested two different recursions and I'm really far from the "Recursion limit"! Here the examples: functio

Re: [Scilab-users] How to list the content of the recursion stack?

2021-05-06 Thread Clément David
Hello Samuel, If I remember correctly, this message comes without any information as this is a regular Scilab error and should be trap through debug(). However on the latest Scilab dev build it seems to crash my Scilab. Could you post a bug on that please ? Thanks, Clément -Original Mes