home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / tcl / 1080 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  2.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!agate!adrianho
  2. From: adrianho@barkley.berkeley.edu (Adrian J Ho)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: How do I imbed tcl in an application
  5. Date: 30 Jul 92 15:11:11
  6. Organization: University of California, Berkeley
  7. Lines: 31
  8. Message-ID: <ADRIANHO.92Jul30151111@barkley.berkeley.edu>
  9. References: <1992Jul27.175107.7633@rchland.ibm.com>
  10.     <ADRIANHO.92Jul27175403@barkley.berkeley.edu>
  11.     <1992Jul28.113922.19882@cas.org>,<156g6sINNnp2@agate.berkeley.edu>
  12.     <1992Jul29.222557.7305@cpu.com>
  13.     <ADRIANHO.92Jul29201730@barkley.berkeley.edu>
  14. NNTP-Posting-Host: barkley.berkeley.edu
  15. In-reply-to: adrianho@barkley.berkeley.edu's message of 29 Jul 92 20:17:30
  16.  
  17. In article <ADRIANHO.92Jul29201730@barkley.berkeley.edu> adrianho@barkley.berkeley.edu (Adrian J Ho) writes:
  18. >IMHO, a neater way is to modify the Tcl library to allow for the
  19. >specification and storage of subcommand descriptors. [...]
  20.  
  21. And of course I forgot to describe the changes for Tcl_DeleteCommand()
  22. and every other procedure that looks up the command hash table.  At
  23. last glance, the list of procedures to be modified looks like this:
  24.  
  25. tclBasic.c:
  26.     Tcl_CreateCommand()
  27.     Tcl_DeleteCommand()
  28.     Tcl_DeleteInterp()
  29.     Tcl_Eval()
  30. tclCmdIL.c:
  31.     Tcl_InfoCmd()
  32. tclCmdMZ.c:
  33.     Tcl_RenameCmd()
  34. tclProc.c:
  35.     TclFindProc()
  36.  
  37. All these procedures need to be modified to do some tree-walking
  38. instead of grabbing/modifying the top-level entry from the command
  39. hash table.  Of course, it would probably be easier to construct
  40. special access methods for commandTables and modify all the above
  41. procedures to use them.
  42. --
  43. -----------------------------------------------------------------------------
  44. Adrian Ho, He With The Embarrassingly *Dead* Passion ** Phone: (510) 642-5563
  45. System Manager, CFD Lab, ME Dept, UC Berkeley * adrianho@barkley.berkeley.edu
  46. Maintainer, Tcl/Tk Contrib Archive ---- barkley.berkeley.edu [128.32.142.237]
  47.   Send all Tcl/Tk Archive-related stuff to tcl-archive@barkley.berkeley.edu
  48.