Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8ba0a6441b888f5a075fe86af3e3ed546f0c46e2
Ticket: 1834653fffffffffffffffffffffffffffffffff
Funny comments
User & Date: msofer on 2007-11-20 00:34:55
Changes

  1. closedate changed to: "2007-11-19T17:34:55"
  2. closer changed to: "msofer"
  3. icomment:
    Logged In: YES 
    user_id=148712
    Originator: NO
    
    That is correct behaviour: braces are parsed before comments in Tcl. This is contrast to C, where comments are removed by the preprocessor before any parsing occurs.
    
    Your code is understood exactly as if it were written
      if { 0 } {
        puts "00"
        #
      } elseif { 1 } {
        # puts "11"
        puts "22"
      }
    }
    
    Please refer to the Tcl.n man page (http://www.tcl.tk/man/tcl8.4/TclCmd/Tcl.htm) and/or the wiki (http://wiki.tcl.tk/462).
    
    
  4. login: "msofer"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "msofer"