Tcl syntax tips

This page is part of the Tcl/Tk page of the Airplug documentation.
Back to the Tcl/Tk page / Back to the Airplug documentation page.

Comments

  • Don't use { } inside comments.
  • Don't use comments between two cases in a switch. The following piece of code gives an error:
    switch $value {
      value_1
      # Comment for first case
      {
         ...
      }
    }
  • Instead, you should use:
    switch value {
      value_1
      {
         # Comment for first case
         ...
      }
    }

<br>


This page is part of the Tcl/Tk page of the Airplug documentation.
Back to the Tcl/Tk page / Back to Airplug documentation page.

 
Back to top
en/doc/pub/tcltk/tips/syntax.txt · Last modified: 2017/04/04 18:45 (external edit)
 
 
Driven by DokuWiki