Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e79ccb3013b19e219c3aa72f4dd9c39d8789ddfe
Ticket: 1615277fffffffffffffffffffffffffffffffff
string equal example wrong in doc
User & Date: escargo on 2006-12-13 21:23:29
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The following code appears in the documentation for string, as an example of using string equal:
    
    Test if the string in the variable string is a proper non-empty prefix of the string foobar. 
    set length [string length $string]
    if {$length == 0} {
       set isPrefix 0
    } else {
       set isPrefix [string equal -length $string $string "foobar"]
    }
    
    It has an unnoticed bug: the variable after the -length should be $length, not $string.
    
  4. foundin changed to: "obsolete: 8.4.14"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "escargo"
  10. subsystem changed to: "18. Commands M-Z"
  11. title changed to: "string length example wrong in doc"
  12. type changed to: "Bug"