Overview
| Artifact ID: | 127b1ab3c24d866f127f02408c0f41ecebc3de5b07cb03043f869125c2165ede |
|---|---|
| Ticket: | 3a24cc9df1619a130120e8cef8560aef0561c1f0
Switch statement case fails when using a open parenthesis in a comment |
| User & Date: | mookie on 2025-04-12 22:45:50 |
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 code which results in invalid command name "}" } % yay_lang "tcl" Yay! TCL invalid command name "}" Not sure feature, or bug, so feel free to close, but surely a comment is a comment and shouldn't be executed? I recall correctly it's down to that switch cases are executed as lists. But something feels eery that you can't use a { in a comment. - login: "mookie"
- mimetype: "text/plain"
- title changed to:
Switch statement case fails when using a open parenthesis in a comment