recursion limit

Alex Rice alex at mindlube.com
Mon Sep 1 12:10:00 EDT 2003


On Monday, September 1, 2003, at 10:26  AM, Klaus Major wrote:
>>  limit in Rev 2.x?
>
> Sure, but that values represents bytes...?
>
> Could you please give a short example on how ordinary scripters like 
> moi
> can calculate the necessary value? ;-)
>
> I admit that i have NO idea how and what can be calculated...

After reading the Transcript Dictionary entry for the recursionLimit, 
it seems to be saying it's really not possible to be calculated ahead 
of time- because it depends on machine architecture and the number of 
parameters of the function.

If you bump into the limit, increase it. Experimentation required.

I think having the limit in bytes is actually better than just an 
integer of levels of recursion. With the setting as bytes it will be 
more possible to adjust it to the amount of memory to use for example.

Alex Rice <alex at mindlube.com> | Mindlube Software | http://mindlube.com

what a waste of thumbs that are opposable
to make machines that are disposable  -Ani DiFranco




More information about the use-livecode mailing list