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

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!mips!sdd.hp.com!swrinde!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. Message-ID: <ADRIANHO.92Jul30145641@barkley.berkeley.edu>
  6. Date: 30 Jul 92 19:56:41 GMT
  7. References: <1992Jul27.175107.7633@rchland.ibm.com>    <ADRIANHO.92Jul27175403@barkley.berkeley.edu>    <1992Jul28.113922.19882@cas.org>,<156g6sINNnp2@agate.berkeley.edu>    <1992Jul29.222557.7305@cpu.com>,<ADRIANHO.92Jul29201730@barkley.berkeley.edu>
  8.     <1992Jul30.130352.11885@cpu.com>
  9. Organization: University of California, Berkeley
  10. Lines: 23
  11. NNTP-Posting-Host: barkley.berkeley.edu
  12. In-reply-to: gwlester@cpu.com's message of Thu, 30 Jul 1992 13:03:52 GMT
  13.  
  14. In article <1992Jul30.130352.11885@cpu.com> gwlester@cpu.com (Gerald W. Lester) writes:
  15. > I agree, your proposed change would be nice, but the poster wanted
  16. >to be able to extend a command from *Tcl* your suggestion only
  17. >directly allows it to be done from *C*.
  18.  
  19. If I read the code correctly, my changes automagically take care of
  20. the Tcl case too, since Tcl_ProcCmd() calls Tcl_CreateCommand() with
  21. argv[1] as the command name anyways.
  22.  
  23. >   Another change that would be noce is to extend the proc command to take
  24. >an optional fourth arguement that would be a tcl command to invoke when the
  25. >procedure is deleted.
  26.  
  27. Adding that just requires a few changes to Tcl_ProcCmd() to accomplish
  28. that, but I can't think of any application for this enhancement.  Can
  29. you suggest any concrete examples?  (The reason I ask is coz I figured
  30. John would've added it a long time ago if it had any utility.)
  31. --
  32. -----------------------------------------------------------------------------
  33. Adrian Ho, He With The Embarrassingly *Dead* Passion ** Phone: (510) 642-5563
  34. System Manager, CFD Lab, ME Dept, UC Berkeley * adrianho@barkley.berkeley.edu
  35. Maintainer, Tcl/Tk Contrib Archive ---- barkley.berkeley.edu [128.32.142.237]
  36.   Send all Tcl/Tk Archive-related stuff to tcl-archive@barkley.berkeley.edu
  37.