Skip to content
Tcl Source Code View Ticket
Login

View Ticket

expr manual error with x ? y : z

Closed / Fixed04d1d40a323a617c9f08c250e72850fafd901cb1Created 97 days agoUpdated 96 days ago
Descriptionplain2026-08-28 19:07:31
Am I mistaken or is this backwards (from the manual online pages and expr.n):

x ? y : z
    If-then-else, as in C. If x is false , the result is the value of y. Otherwise the result is the value of z. This operator evaluates lazily; it evaluates only one of y or z.
anonymousplain2026-08-28 20:52:12
actually, in 8.6 is said non-zero, so it appears to be a change in wording in 9.x
oehharwiki2026-08-29 09:13:02

Right you are !

Fiexed by [9176ea0d] in main and core-9-0-branch.

Thanks, Harald

Log in (anonymous is fine) to add a comment.