-Q9M- put comments in my script, for example in a case statement?

From: -IX-  How, in Tcl, can I XXX:

A9M. You can't have comments where you have them.  Move the comments inside
of the "{" for the case that you want.  Your code should read:

case 1 {
  -1    {
        #
        # Cannot find information sought
        #
        exit 2
        }
   0    {
        #
        # Error in arguments
        #
        exit 1
        }
   default    {
        #
        # Desired information found
        #
        exit 0
        }
}

Thanks to gwlester@cpu.com (Gerald W. Lester).
Go Back Up

Go To Previous

Go To Next