Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 72c88b24f44cb1851c932dba71094468712b57b938c8ddc3aacfd185eab1d239
Ticket: 7e9d561a08d14855a310d9df3bd364e2ac18d668
It may be error.
User & Date: jan.nijtmans on 2022-11-27 22:48:01
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2459911.45001476"
  3. closer changed to: "jan.nijtmans"
  4. 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
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"
  7. resolution changed to: "Invalid"
  8. status changed to: "Closed"