diff options
author | welch <welch> | 1999-08-13 19:01:04 (GMT) |
---|---|---|
committer | welch <welch> | 1999-08-13 19:01:04 (GMT) |
commit | a68fb83f3a0ddf20cf49ad435a61c41cfc0dd1f3 (patch) | |
tree | cd3b66e53e6a65190b6a673870942177b430aaf5 /doc/catch.n | |
parent | 9f97a0a02a4ee62615ed9671d5e88017abde1ff3 (diff) | |
download | tcl-a68fb83f3a0ddf20cf49ad435a61c41cfc0dd1f3.zip tcl-a68fb83f3a0ddf20cf49ad435a61c41cfc0dd1f3.tar.gz tcl-a68fb83f3a0ddf20cf49ad435a61c41cfc0dd1f3.tar.bz2 |
Minor tweaks to get these pages through the HTML converterscriptics_tclpro_1_3_0core_8_2_0
Diffstat (limited to 'doc/catch.n')
-rw-r--r-- | doc/catch.n | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/doc/catch.n b/doc/catch.n index 23771f9..885768f 100644 --- a/doc/catch.n +++ b/doc/catch.n @@ -5,7 +5,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: catch.n,v 1.3 1999/04/16 00:46:34 stanton Exp $ +'\" RCS: @(#) $Id: catch.n,v 1.4 1999/08/13 19:01:04 welch Exp $ '\" .so man.macros .TH catch n "8.0" Tcl "Tcl Built-In Commands" @@ -46,25 +46,21 @@ error. The \fBcatch\fR command may be used in an \fBif\fR to branch based on the success of a script. -.DS .CS if { [catch {open $someFile w} fid] } { puts stderr "Could not open $someFile for writing\\n$fid" exit 1 } .CE -.DE The \fBcatch\fR command will not catch compiled syntax errors. The first time proc \fBfoo\fR is called, the body will be compiled and a Tcl error will be generated. -.DS .CS proc foo {} { catch {expr {1 +- }} } .CE -.DE .SH KEYWORDS catch, error |