with_finally (public, deprecated)
with_finally -code code -finally finally
Defined in packages/acs-tcl/tcl/deprecated-procs.tcl
Deprecated. Invoking this procedure generates a warning.
Execute CODE, then execute cleanup code FINALLY. If CODE completes normally, its value is returned after executing FINALLY. If CODE exits non-locally (as with error or return), FINALLY is executed anyway.
- Switches:
- -code (required)
- Code to be executed that could throw and error
- -finally (required)
- Cleanup code to be executed even if an error occurs DEPRECATED: does not comply with OpenACS naming convention and can be replaced with better api such as ad_try or native Tcl constructs such as ::try (8.6)
- See Also:
- try
- ad_try
- Testcases:
- No testcase defined.