Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

18.6. Introducing Recursion

Recursion is when a handler calls itself. Technically it means that the handler definition contains the handler call. The following example contains an example of a handler that will call itself an infinite number of times:

do_something()

on do_something()
   display dialog "Doing something now..."
   do_something()
end do_something


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint