Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 332cdb59b51e7d55aae359e611ca4995dede702437e368231a5d24c47e6df4e4
Ticket: 32dd97149b4aa2f943f9a8d04bf0ecda8b348084
tcl comment syntax BUG
User & Date: jan.nijtmans on 2022-08-29 12:39:46
Changes

  1. assignee changed to: "jan.nijtmans"
  2. closedate changed to: "2459821.02762597"
  3. closer changed to: "jan.nijtmans"
  4. icomment:
    This is not a bug, but it's how the Tcl parser works.
    
    Everything between '{' and '}' is always taken literally and fed to the command, the command is fully responsible for interpreting this string. In case of 'if', the command interprets the 3th argument as code, which contains a last line starting with '#' and ends just before '}'. So the effect of the first '#' ends with the following '}', not at the end of the line.
    
    Hope this helps,
        Jan Nijtmans
    
  5. login: "jan.nijtmans"
  6. mimetype: "text/x-fossil-wiki"
  7. resolution changed to: "Invalid"
  8. status changed to: "Closed"