diff options
author | Adrian Ho <aho+lex@03s.net> | 2022-06-24 18:46:03 +0800 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2022-06-24 23:43:04 +1000 |
commit | a9fbab360b20432af318923381c20c9d67788436 (patch) | |
tree | 0c158c74429831151bea8577960c7ee8d64983f4 /jim_tcl.txt | |
parent | 34d0e14824c2491002fe5763c11b66c196a0f109 (diff) | |
download | jimtcl-a9fbab360b20432af318923381c20c9d67788436.zip jimtcl-a9fbab360b20432af318923381c20c9d67788436.tar.gz jimtcl-a9fbab360b20432af318923381c20c9d67788436.tar.bz2 |
jim_tcl.txt: move `defer` doc to proper place
Also regenerated `Tcl_shipped.html` to capture doc changes since it was last generated.
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r-- | jim_tcl.txt | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index 442b34a..572670c 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -2049,6 +2049,23 @@ the following creates a local, unnamed alias for the command `info exists`. See also `proc`, `alias`, `lambda`, `local`. +defer +~~~~~ ++*defer* 'script'+ + +This command is a simple helper command to add a script to the '+$jim::defer+' variable +that will run when the current proc or interpreter exits. For example: + +---- + . proc a {} { defer {puts "Leaving a"}; puts "Exit" } + . a + Exit + Leaving a +---- + +If the '+$jim::defer+' variable exists, it is treated as a list of scripts to run +when the proc or interpreter exits. + dict ~~~~ +*dict* 'option ?arg\...?'+ @@ -3454,23 +3471,6 @@ with last option being used. The list length must be an integer multiple of 'strideLength', which in turn must be at least 2. -defer -~~~~~ -+*defer* 'script'+ - -This command is a simple helper command to add a script to the '+$jim::defer+' variable -that will run when the current proc or interpreter exits. For example: - ----- - . proc a {} { defer {puts "Leaving a"}; puts "Exit" } - . a - Exit - Leaving a ----- - -If the '+$jim::defer+' variable exists, it is treated as a list of scripts to run -when the proc or interpreter exits. - open ~~~~ +*open* 'fileName ?access?'+ |