[REBOL] Stack depth & Recursion
From: robbo1mark:aol at: 9-Jul-2001 12:10
Joel / everybody,
Here's a little test func to find stack depth
>> recfun: func [x][prin [x #" "] x: x + 1 recfun x]
>> recfun 1
1 2 . . . 3146 3147 ERROR!
** Internal Error: Stack overflow
** Near: x #" "
I've got REBOL/Core 2.5 and it always seem to halt
at 3148 stack depth.
Maybe this is different on other platforms / versions,
and I suppose the stock answer would be "it isn't wise
to speculate on these things....platforms...versions...
..blah blah blah!"
Which is fair enough as I'm not saying these things
don't make for practical implementation variances.
That's all I can think of.