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

Samuel Gougeon sgougeon at free.fr
Thu May 6 13:16:39 CEST 2021


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  =
    1000.

set by default in the user's preferences:
https://help.scilab.org/docs/6.1.0/en_US/recursionlimit.html

A recursion can be triggered in a involontary way according to a quite 
indirect and complex path. That was the case i have met. I have fixed it 
with a lot of spying pause() and disp().
But it's not really a way of working...

Samuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210506/d99f4f81/attachment.htm>


More information about the users mailing list