[jawsscripts] Recursive Function Calls

  • From: "Gavin Grundlingh" <g.batworx@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 28 Nov 2013 00:24:51 +0200

Hi all,

How exactly do recursive function calls work? From what I've read, a recursive 
function is a function that calls itself. What I don't understand, though, is 
how a function can call itself without going into an infinite loop. Consider 
the following example:

Void Function SpeakTest ()
SayString ("test")
SpeakTest ()
EndFunction

now when calling SpeakTest, the string "test" is not infinitely spoken. Has 
anyone used this kind of function in a script before?

__________�

View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts: