home *** CD-ROM | disk | FTP | other *** search
/ Practical Programming in Tcl & Tk (4th Edition) / TCLBOOK4.BIN / mac / exsource.old / 7_1.tcl < prev    next >
Text File  |  2003-04-15  |  111b  |  13 lines

  1. #
  2. # Example 7-1
  3. # Default parameter values.
  4. #
  5.  
  6. proc P2 {a {b 7} {c -2} } {
  7.     expr $a / $b + $c
  8. }
  9. P2 6 3
  10. #=> 0
  11.  
  12.  
  13.