home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tcltk805.zip / tcl805s.zip / tcl8.0.5 / os2 / pkg / pkg4.tcl < prev    next >
Text File  |  1998-10-17  |  562b  |  28 lines

  1. # pkg4.tcl --
  2. #
  3. #  Test package for pkg_mkIndex. This package requires pkg3, and it calls
  4. #  a pkg3 proc in the code that is executed by the file
  5. #
  6. # Copyright (c) 1998 by Scriptics Corporation.
  7. # All rights reserved.
  8. # RCS: @(#) $Id: pkg4.tcl,v 1.1 1998/10/17 00:21:42 escoffon Exp $
  9.  
  10. package require pkg3 1.0
  11.  
  12. package provide pkg4 1.0
  13.  
  14. namespace eval pkg4 {
  15.     namespace export p4-1 p4-2
  16.     variable m2 [pkg3::p3-1 10]
  17. }
  18.  
  19. proc pkg4::p4-1 { num } {
  20.     variable m2
  21.     return [expr {$m2 * $num}]
  22. }
  23.  
  24. proc pkg4::p4-2 { num } {
  25.     return [pkg3::p3-2 $num]
  26. }
  27.