Re: recursion depth
Re: recursion depth
- Subject: Re: recursion depth
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 9 Oct 2005 13:24:31 -0400
I suspect it depends on the size of the stack frame - the larger the
handler, the more local variables or parameters, the fewer levels you
get. I got the same results as Matt with his example, but for this
code I got 733:
set recursionCount to 0
on recurse()
global recursionCount
set recursionCount to recursionCount + 1
recurse()
end recurse
try
recurse()
on error
display dialog (recursionCount)
end try
On 10/9/05, Daniel Jalkut <email@hidden> wrote:
> I get the exact same as you. I'm on a PowerMac Dual G5 2.0GHz, 10.4.2.
>
> I suspect it's a hard-coded constant in AppleScript. See the comments, for
> instance, in these release notes:
>
> http://developer.apple.com/ReleaseNotes/AppleScript/AppleScript.html
>
> Search on "internal runtime stack". The people who are reporting different
> values are probably running an earlier version of Mac OS X. Have you heard
> anybody report a higher value than 504?
>
> Daniel
>
>
> On Oct 9, 2005, at 12:52 PM, Matt Neuburg wrote:
>
>
> OMM, that works, but if "max" is set to 505, we get a stack overflow.
>
> However, other users report other numbers. So now I'd like to collect some
>
> more data. Please report what your maximum "max" is (and anything else you
>
> think might be affecting this - your ram size, for instance?).
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden