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
         ...
      }
    }

<html><br></html>


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: by 127.0.0.1
 
 
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0