Overview
| Artifact ID: | ca870d1eb81a2fe45c7072d8f8e1eae239d0bfc753962e21462de587fd0fb48d |
|---|---|
| Ticket: | 3a24cc9df1619a130120e8cef8560aef0561c1f0
Switch statement case fails when using a open parenthesis in a comment |
| User & Date: | mookie on 2025-04-12 22:45:11 |
Changes
- comment changed to:
Example code: proc yay {lang} { switch $lang { tcl { puts "Yay! TCL" # having a { 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"