Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!mips!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!funic!santra!santra!matti From: matti@niksula.hut.fi (Matti Saavalainen) Newsgroups: comp.sys.mac.hypercard Subject: Re: HC stack overflow Message-ID: Date: 17 Nov 90 20:19:48 GMT References: <90Nov9.125535*Arne.Venstad@elab-runit.sintef.no> Sender: news@santra.uucp (Cnews - USENET news system) Distribution: comp.sys.mac.hypercard Organization: KK Jazz, Finland Lines: 21 In-Reply-To: Arne.Venstad@elab-runit.sintef.no's message of 9 Nov 90 11:55:35 GMT Talking about recursion, I would like to know how much recursion does HC allow. Just for fun, I did a script which sorted all the lines in a single text field (HyperTalk certainly was *not* meant for this ;-), using recursive quicksort. When I tried to sort a text field where the lines already were sorted, the sorting started, but after a while I got a message "Too much recursion" (or something like that: I get my messages in Finnish). What could cause this? The script works fine if the field is not sorted. Is there a definitive limit for recursive calls? -- ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "A star fall, Matti Saavalainen a phone call, it joins all, matti@niksula.hut.fi synchronicity" ( The Police ) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?