Re: Package unloading



Have you tried using "package forget"?

Yes. That seems to convince the interpreter that the package is no longer loaded, but doesn't actually delete the namespaces and procedure definitions that it created. auto_path still contains the paths to the files. All the procs in the package are still in the interpreter so they still run.

I was hoping there was some easy way to back out all that stuff, or to force the next "package require" command to go and reload the tcl file from the disk. Is there an easy way to re-source the file without having to type its full filename (which is this case is enormous)?
.



Relevant Pages

  • [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)
  • Re: Standalone Javascript interpreter for Linux?
    ... package system for SipderMonkeys js interpreter (instead of directly ... A full scripting environment for JS on the command line would be very ... The foundation of what I'm building is a package management client ...
    (comp.lang.javascript)
  • ANNOUNCE: tclpython-4.1
    ... Makefile.vc included in distribution for compiling under Windows ... a Python package for Tcl ... $interpreter exec ... interpreter from a Python interpreter: ...
    (comp.lang.tcl)