home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / tcl / 1193 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.9 KB  |  45 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!karl
  3. From: karl@NeoSoft.com (Karl Lehenbauer)
  4. Subject: Re: Tcl wish vs TclX wish con't
  5. Organization: NeoSoft Communications Services -- (713) 684-5900
  6. Date: Fri, 14 Aug 1992 12:43:15 GMT
  7. Message-ID: <1992Aug14.124315.22391@NeoSoft.com>
  8. References: <1992Aug6.165431.185@twg.com> <1992Aug07.035909.14515@NeoSoft.com> <1992Aug11.090136.1497@cc-mac.nbn.com>
  9. Lines: 34
  10.  
  11. In article <1992Aug11.090136.1497@cc-mac.nbn.com> dv@cc-mac.nbn.com (David Vezie) writes:
  12. >I just grabbed those patches, and installed them.  But there's a
  13. >more basic problem, I think, with TclX and TK.  tk.tcl (which is
  14. >what both wish.tcl and wishx.tcl source) sets up auto_path, which
  15. >the "undefined" in init.tcl knows how to use, but TclInit.tcl
  16. >does not.  This means that the routines necessary for tk (like
  17. >the button control routines) are not available unless you source
  18. >init.tcl (via wish.tcl).
  19.  
  20. >Is there something else I'm missing?  Or could TclInit.tcl be fixed
  21. >to use auto_path?
  22.  
  23. I finally tracked this all down.
  24.  
  25. In Extended Tcl, as long as a directory with either Ouster's tclIndex or our 
  26. *.tlib/*.tndx files is in the TCLPATH variable, stuff in that directory will
  27. get autoloaded as expected.
  28.  
  29. Extended Tcl *does* support John Ousterhout's autoload mechanism in
  30. that it will load his tclIndex files and pull in the referenced
  31. files automatically.  
  32.  
  33. However, we don't support the auto_path variable itself.  This is a problem
  34. for the widget demo, which basically 'lappend's auto_path with the pathname
  35. of the demo directory.
  36.  
  37. The answer, I think, is for us to support auto_path.  For now, the easiest 
  38. answer is to change the TCLPATH in the Extended Tcl default file to
  39. include the demo directory.
  40.  
  41. -- 
  42. -- Email info@NeoSoft.com for info on getting interactive Internet access.
  43. You will now awaken feeling relaxed and refreshed, remembering everything 
  44. you've read except the details of the Omega contingency plan.
  45.