Artifacts Associated With Ticket 7e9d561a08d14855
Ticket change [c62bbcafdb] (rid 207451) by anonymous on 2022-11-27 16:55:33:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
######################################################## # It may be error. ######################################################## puts "$::tcl_patchLevel\n$::tcl_platform(os); $::tcl_platform(machine);\ $::tcl_platform(platform); $::tcl_platform(osVersion); $::tcl_platform(wordSize);" set li { 1 2 3 4 5 } puts "[expr { [string map [list end [llength $li] ] end+8] } ]" ######################################################## #Output: 8.6.2 Windows NT; intel; windows; 10.0; 4; 5+8 ######################################################## # Why not 13?! ######################################################## - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "011cf1866dfa8bb09f711926168b65e59e21409c"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "It may be error."
- type initialized to: "Bug"
Ticket change [72c88b24f4] (rid 207455) by jan.nijtmans on 2022-11-27 22:48:01:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459911.45001476"
- closer changed to: "jan.nijtmans"
- icomment:
Well, 8.6.2, that's an old Tcl version!!!!! I get: <pre> % set li { 1 2 3 4 5 } 1 2 3 4 5 % expr { [string map [list end [llength $li] ] end+8] } 5+8 </pre> The reason for this is that your 'expr' has only a single argument (everything between the outer '[' and ']'. Therefore the '+' is not seen as an operation. Works as expected - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- status changed to: "Closed"