Tcl Source Code

Hex Artifact Content
Login

Artifact d817a5f37d7fa682c4b77055381a1f7a36f9d0ce:

Attachment "bug2.tcl" to ticket [3562482fff] added by duquette 2012-08-28 23:10:10.
0000: 73 65 74 20 73 63 72 69 70 74 20 7b 0a 20 20 20  set script {.   
0010: 20 70 75 74 73 20 22 6c 69 6e 65 20 32 3a 20 5b   puts "line 2: [
0020: 69 6e 66 6f 20 66 72 61 6d 65 20 30 5d 22 0a 20  info frame 0]". 
0030: 20 20 20 73 65 74 20 61 20 35 20 20 20 20 20 20     set a 5      
0040: 20 20 20 20 20 20 20 20 20 3b 23 20 45 6e 64 20           ;# End 
0050: 6c 69 6e 65 20 63 6f 6d 6d 65 6e 74 0a 20 20 20  line comment.   
0060: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20                  
0070: 20 20 20 20 20 20 20 3b 23 20 45 6e 64 20 6c 69         ;# End li
0080: 6e 65 20 63 6f 6d 6d 65 6e 74 20 77 69 74 68 20  ne comment with 
0090: 75 6e 6e 65 65 64 65 64 20 73 65 6d 69 2d 63 6f  unneeded semi-co
00a0: 6c 6f 6e 0a 20 20 20 20 70 75 74 73 20 22 6c 69  lon.    puts "li
00b0: 6e 65 20 35 3a 20 5b 69 6e 66 6f 20 66 72 61 6d  ne 5: [info fram
00c0: 65 20 30 5d 22 0a 20 20 20 20 73 65 74 20 61 20  e 0]".    set a 
00d0: 35 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  5               
00e0: 3b 23 20 45 6e 64 20 6c 69 6e 65 20 63 6f 6d 6d  ;# End line comm
00f0: 65 6e 74 0a 20 20 20 20 20 20 20 20 20 20 20 20  ent.            
0100: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3b 23                ;#
0110: 20 45 6e 64 20 6c 69 6e 65 20 63 6f 6d 6d 65 6e   End line commen
0120: 74 20 77 69 74 68 20 75 6e 6e 65 65 64 65 64 20  t with unneeded 
0130: 73 65 6d 69 2d 63 6f 6c 6f 6e 0a 20 20 20 20 70  semi-colon.    p
0140: 75 74 73 20 22 6c 69 6e 65 20 38 3a 20 5b 69 6e  uts "line 8: [in
0150: 66 6f 20 66 72 61 6d 65 20 30 5d 22 0a 7d 0a 0a  fo frame 0]".}..
0160: 63 61 74 63 68 20 24 73 63 72 69 70 74 0a 0a     catch $script..