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 / pkg5.tcl < prev    next >
Text File  |  1998-10-17  |  641b  |  31 lines

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