Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-05-10
21:43 • Closed ticket [951253ffff]: Parser not catching hanging "]" or "}... artifact: 1adb817ccf user: msofer
13:43 • New ticket [951253ffff]. artifact: 5b1c8eea5e user: silpheed

Parser not catching hanging "]" or "}"

Closed / Invalid951253ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-05-10 13:43:36
Using the following commands:

set str 123
123
set str1 $str]
123]
set str1 $str}
123}

Is this how the parser is supposed to act? I was 
expecting the parser to complain about missing a "{" 
or "[" based on the error.
msoferplain2004-05-10 21:43:46
Logged In: YES 
user_id=148712

This is correct and documented behavior, see the manual page
Tcl(n).
The symbols ] and } have special meaning only within words
starting with [ and { respectively.
Log in (anonymous is fine) to add a comment.