All Cobra Statements
All statements in alphabetical order:
- assert - assert condition
- branch - multiway branch
- expect - assert receiving an exception
- lock - lock and execute code in a critical section
- if-then-else - conditional execution
- pass - specify non operation
- post (while) - loop while condition true testing condition at end of block. do-while equivalent
- print - output something
- raise - raise/fire an event
- return - return from a method
- throw - generate an exception
- trace - emit trace/debug info
- try-catch - try a block and handle any thrown exceptions
- using - specify a block with initialization and automatic (and correct) cleanup of IDisposable objects. A construct to support RAII for IDisposables.
- use - specify a namespace and contents to be used by this module
- while - loop while a condition is true
- yield - yield a result from a generator