diff options
author | Steve Bennett <steveb@workware.net.au> | 2020-11-16 22:09:31 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2020-11-16 22:09:31 +1000 |
commit | 7eb4881306eb10000657a6b020f12002d30943d1 (patch) | |
tree | a7170dc4c461d5aeb750151cf08fd221f0a47ae7 /jim_tcl.txt | |
parent | 19a8dacce565dc286ad9d3950d0f669f3058673d (diff) | |
download | jimtcl-7eb4881306eb10000657a6b020f12002d30943d1.zip jimtcl-7eb4881306eb10000657a6b020f12002d30943d1.tar.gz jimtcl-7eb4881306eb10000657a6b020f12002d30943d1.tar.bz2 |
expr: TIP 582 - comments in expressions
Add support for comments in expressions
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim_tcl.txt')
-rw-r--r-- | jim_tcl.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/jim_tcl.txt b/jim_tcl.txt index f07ca14..73615c6 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -3,7 +3,7 @@ Jim Tcl(n) NAME ---- -Jim Tcl v0.80 - reference manual for the Jim Tcl scripting language +Jim Tcl v0.80+ - reference manual for the Jim Tcl scripting language SYNOPSIS -------- @@ -52,6 +52,10 @@ Some notable differences with Tcl 8.5/8.6/8.7 are: RECENT CHANGES -------------- +Changes since 0.80 +~~~~~~~~~~~~~~~~~~ +1. TIP 582, comments allowed in expressions + Changes between 0.79 and 0.80 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. `regsub` now fully supports +{backslash}A+ @@ -725,6 +729,9 @@ White space may be used between the operands and operators and parentheses; it is ignored by the expression processor. Where possible, operands are interpreted as integer values. +Comments are allowed in expressions, beginning with the '#' character +and continuing until the end of line or end of expression. + Integer values are interpreted as decimal, binary, octal or hexadecimal if prepended with '0d', '0b', '0o' or '0x' respectively. Otherwise they are interpreted as decimal by default. |