Tcl Source Code

Check-in [09c6338b2f]
Login
Bounty program for improvements to Tcl and certain Tcl packages.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:more formatting
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-branch
Files: files | file ages | folders
SHA3-256: 09c6338b2f9458189e0dfa7ec091ee7459ecd3b6b3cbde4b311a977cf5a724e7
User & Date: dgp 2019-06-10 19:09:16
Context
2019-06-10
20:02
merge more expr doc tweaks check-in: 6047e60fec user: dkf tags: core-8-branch
19:42
merge 8.7 check-in: 4feba7477a user: dgp tags: tip-521
19:24
merge 8.7 check-in: f8d415a72b user: dgp tags: trunk
19:09
merge 8.7 check-in: b81e8ad1c0 user: dgp tags: tip-461
19:09
more formatting check-in: 09c6338b2f user: dgp tags: core-8-branch
18:58
Doc formatting and advice about double substitution in expressions. check-in: ccffc2575c user: dgp tags: core-8-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to doc/expr.n.

381
382
383
384
385
386
387

388
389
390
391
392

393
394
395
396
397
398
399
and where not possible, the argument to \fBexpr\fR should be an expression
defined elsewhere as simply as possible. It is usually more efficient and
safer to use other techniques (e.g., the commands in the \fBtcl::mathop\fR
namespace) than it is to do complex expression generation.
.SH EXAMPLES
.PP
A numeric comparison whose result is 1:

.CS
\fBexpr\fR {"0x03" > "2"}
.CE
.PP
A string comparison whose result is 1:

.CS
\fBexpr\fR {"0y" > "0x12"}
.CE
.PP
Define a procedure that computes an
.QW interesting
mathematical function:






>





>







381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
and where not possible, the argument to \fBexpr\fR should be an expression
defined elsewhere as simply as possible. It is usually more efficient and
safer to use other techniques (e.g., the commands in the \fBtcl::mathop\fR
namespace) than it is to do complex expression generation.
.SH EXAMPLES
.PP
A numeric comparison whose result is 1:
.PP
.CS
\fBexpr\fR {"0x03" > "2"}
.CE
.PP
A string comparison whose result is 1:
.PP
.CS
\fBexpr\fR {"0y" > "0x12"}
.CE
.PP
Define a procedure that computes an
.QW interesting
mathematical function: