AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
abort (String name [, String arg1, ..., String argN]) reserved
 
populates global.errordict and calls the system error handling routine. The error message is constructed using name and any optionally provided string arguments, which are each followed by a semi-colon in the resulting error message except when three or more arguments are provided to abort, in which case the second argument is followed by a colon rather than a semi-colon. Line and source information are automatically included in the message. After an abort, execution resumes at the top-level context.
 
 Example:   At least one argument is needed as shown:
abort("rangecheck");
resulting in a message that looks like:
Error: rangecheck; Builtin: abort; Line: 1; Source: -stdin-
Additional arguments, such as:
abort("myfun", "arg", "3", "undef");
prints a message that looks like:
Error: myfun; Builtin: abort; arg: 3; undef; Line: 1; Source: -stdin-
 
 Return:   none
 
 See Also:   debug, exit

 

Yoix is a registered trademark of AT&T Inc.