home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / tcl / 2131 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  689 b 

  1. Path: sparky!uunet!think.com!yale.edu!spool.mu.edu!agate!garnet.berkeley.edu!jak
  2. From: jak@garnet.berkeley.edu (John A. Kunze)
  3. Newsgroups: comp.lang.tcl
  4. Subject: setting globals in tk.tcl
  5. Date: 17 Dec 1992 02:55:32 GMT
  6. Organization: University of California, Berkeley
  7. Lines: 8
  8. Distribution: world
  9. Message-ID: <1goq74INN6kh@agate.berkeley.edu>
  10. NNTP-Posting-Host: garnet.berkeley.edu
  11.  
  12. When you source tk.tcl from wish.tcl, the "set" commands correctly
  13. reference globals.  Not true when you source it in the general case.
  14.  
  15. I've fixed my code with "uplevel #0 source tk.tcl" but am wondering
  16. if it wouldn't make more sense to declare the appropriate variables
  17. as globals inside tk.tcl.
  18.  
  19. -John
  20.