Skip to content
Tcl Source Code History Of Ticket 218240ffffffffff
Login

History Of Ticket 218240ffffffffff

Artifacts Associated With Ticket 218240ffffffffff

  1. Ticket change [266a9c3f21] (rid 88343) by nobody on 2000-10-26 00:54:57:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2791 Bug
      Version: 8.2
      SubmitDate: '1999-09-16'
      LastModified: '1999-09-16'
      Severity: MED
      Status: Closed
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Solaris
      Machine: Other
      FixedDate: '2000-10-25'
      ClosedDate: '1999-09-16'
      
      
      Name:
      
      Louis Petro
      
      
      
      Comments:
      
      Yes - one other question.  Is there anyway in TCL to know the current
      
          line number and possible the file name.  I'd like to use this
      
          information for debugging similiar to the __LINE__ and __FILE_ used by
      
          the C programming language.
      
      
      
      ReproducibleScript:
      
      set x 0
      
          
      
          while { $x < 10 } {
      
          # while { $x < 21 } {
      
          incr x
      
          }
      
      
      
      ObservedBehavior:
      
      User in our organization tend to copy code and comment out code alot.
      
          We've found that commented code is still being syntactically
      
          check by TCL.  In the above example user's we receive a syntax error
      
          unless the commented out code is syntactically complete, e.g.,
      
          
      
          # while { $x < 21 } { }
      
          
      
          Has this problem been identified?
      
      
      
      DesiredBehavior:
      
      I;d expect that a commented line would be treated as a comment in TCL.
      
      
      
      PatchFiles:
      
      I found that if the commented line is outside the loop above it then
      
          does not after the "while" loop.
      
          
      
          set x 0
      
          
      
          #while { $x < 21 }
      
          while { $x < 10 } {
      
          incr x
      
          }
      
      
      
      
      
      This is the comment problem cropping up again, and this was answered
      in the newsgroup (cover large blocks with if 0 { }). 
      -- 09/16/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to: "Syntax error due to commented out line of TCL."
    11. type initialized to: "Bug"
  2. Ticket change [b2a2657b33] (rid 98368) by welch on 2000-10-26 08:17:55:

    1. closedate changed to: "2000-10-26T01:17:55"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [5f2ad4adac] (rid 115766) by dgp on 2001-04-19 00:48:30:

    1. closedate changed to: "2001-04-18T17:48:30"
    2. closer changed to: "dgp"
    3. subsystem changed to: "45. Parsing and Eval"