Style question: returning error values from functions
Dar Scott
dsc at swcp.com
Sun Jul 13 00:33:00 EDT 2003
On Saturday, July 12, 2003, at 04:48 PM, Dar Scott wrote:
> The optional 'finally' clause is executed however control gets out of
> the try. Use it like this:
>
> local veryVeryLargeTempArray
> try
> build veryVeryLargeTempArray
> doSomethingWith veryVeryLargeTempArray
> catch errVal
> throw errVal
> finally
> put empty into veryVeryLargeTempArray
> end try
This is a crummy example unless local is changed to global or some
other cleanup is needed because the array is emptied.
Sigh.
Dar
More information about the use-livecode
mailing list