Re: Recursion and Stack overflow
Re: Recursion and Stack overflow
- Subject: Re: Recursion and Stack overflow
- From: "Mark J. Reed" <email@hidden>
- Date: Fri, 4 Dec 2009 12:35:27 -0500
On Fri, Dec 4, 2009 at 11:22 AM, Paul Skinner <email@hidden> wrote:
> In Script Debugger / 10.5.1
>
> on addone(x)
> try
> return 1 + addone(x)
> end try
> return x
> end addone
>
> addone(0)
> -->473
That's also what I get on my system if I use osascript as root. But
if I run osascript without privileges I only get 32. A ulimit
difference, maybe? I'll try it in Script Editor when I'm back home.
--
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden