Hamilton C shell Miscellaneous Statements


Statement
Function
drive: Change current drive.
label: statement Define a label.
(statement_list) Group a list of statements, saving and restoring the current directory during execution
break [ name ] Exit from the named or, by default, the innermost switch, foreach, for, while or repeat statement.
continue [ name ] Continue with the next iteration of the named or innermost foreach, for, while or repeat.
exit [ expr ] Exit from this thread or, if this is the main thread, from the C shell.
goto name Continue at the labeled statement.
onintr statement Define the action to be taken if an interrupt is signaled. Whatever's running is interrupted all the way back up to the block in which the onintr was defined. That statement is run in the current thread and execution continues with the next statement in the block where the onintr was defined. When execution leaves a block in which an onintr is defined, the previous onintr (if any) again takes effect. To ignore or defer interrupts, use the irqmask variable.
source wordargs Read and process statements from a file as if they were typed into this thread.
time statement Execute the statement and report how long it took.
# Comment text up to the end of the line. (To be recognized as a valid comment, the # must be followed by at least one space or tab.)
## comment ## Embedded comment.



Previous Topic | Next Topic

Hamilton C shell | Free Updates | Free Demo Software | Win32 Training
Y2K | Customer Testimonials | On-line Hamilton C shell User Guide
Home | Email | Support | Company Profile | Distributors | Links



Copyright © 1997-2001 by Hamilton Laboratories. All rights reserved.
You are visitor number 1155. This page was last modified August 9, 2001.