Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: assay.tests - Function Up: assay - Tool Previous: assay - Tool


assay.try - Function



Package utility
Module misc
Tool assay


Try each of a list of functions


Synopsis
try(functionlist)


Description
For each function in the list, run the function (without arguments) and trap any fails. At the end, the failures and corresponding messages are logged, and the number of failures is returned.

Note that the argument is a list of function names, not the functions themselves.



Arguments

functionlist   The list of functions


Returns
Int - Number that failed


Example
- include "assay.g"
T 
- assay().try('foo bar tabletest')
foo failed:  argument must be defined
bar failed:  argument must be defined
2





next up previous contents index
Next: assay.tests - Function Up: assay - Tool Previous: assay - Tool   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15