Try

Richard Gaskin ambassador at fourthworld.com
Sun Jul 27 08:10:04 EDT 2008


David Bovill wrote:
> Good to know its fast, but I guess my concern is that a "try" statement
> would slow down each line of a script, and so the speed hit would be a
> factor of how long the script was.
> 
> Not sure why, but I always assumed it would work a bit like debugging or
> using the "do" statement and significantly slow things down, so I've not
> used it to wrap long complex scripts.

It would probably take only a few minutes to benchmark it, having two 
loops timed which are identical except that one of them has a try-catch 
in it.

If you take a moment to benchmark it please post the results.

-- 
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list