Overview
| Artifact ID: | 3403614bce65bf02e05043ea679e7344675a7426a40cd54c9992881b6ed89c9c |
|---|---|
| Ticket: | 3a24cc9df1619a130120e8cef8560aef0561c1f0
Switch statement case fails when using a open parenthesis in a comment |
| User & Date: | mookie on 2025-04-12 22:48:16 |
Changes
- comment changed to:
Example code: proc yay {lang} { switch $lang { tcl { puts "Yay! TCL" # having this { will break this case now } } } ;# end proc I then have to apply an additional { to the get the syntax to execute but results with invalid command name "}" % yay "tcl" Yay! TCL invalid command name "}" Not sure feature, or bug; so feel free to close. Surely a comment is a comment and shouldn't be executed? If recall correctly it's down to that switch cases are executed as lists. FWIW. - login: "mookie"
- mimetype: "text/plain"
- priority changed to: "2"