Package unloading



Surely someone has been here before, but Google isn't helping...

I have a package containing a file call foo.tcl, which contains a whole bunch of Tcl procedures I'm working on. I start a tkcon, package require mypackage, do my thing, then go back to my editor for further work on foo.tcl. Then I run 'make install' to get the latest foo.tcl into place.

Then, I need to exit tkcon and restart it, and package require again to get the latest Tcl code into the interpreter. Is there a way I can unload foo.tcl and reload it from disk without restarting the interpreter?
.



Relevant Pages

  • Re: Package unloading
    ... I have a package containing a file call foo.tcl, which contains a whole bunch of Tcl procedures I'm working on. ... Then, I need to exit tkcon and restart it, and package require again to get the latest Tcl code into the interpreter. ...
    (comp.lang.tcl)
  • Re: Package unloading
    ... bunch of Tcl procedures I'm working on. ... I start a tkcon, package require mypackage, do my thing, then go back to my editor for further work on foo.tcl. ... Then, I need to exit tkcon and restart it, and package require again to get the latest Tcl code into the interpreter. ...
    (comp.lang.tcl)
  • [ANN] rpncalc-2.0
    ... The rpncalc package adds an interactive Reverse Polish Notation ... This interpreter allows the use of Python as ...
    (comp.lang.python.announce)
  • ANNOUNCE: tclperl-3.2
    ... Makefile.vc included in distribution for compiling under Windows ... a Perl package for Tcl ... This package allows the execution of Perl code from a Tcl interpreter, ...
    (comp.lang.tcl)
  • Re: Writing extensions in C: questions:
    ... The correct way to set the interpreter ... >provide], which says it is invoked when the package is finally loaded, ... It seems to me this would result in additional commands being ... >created commands if anything subsequently fails during init? ...
    (comp.lang.tcl)