• Re: sample extension: how to beam created proc tolkens to unload procedure

    From Ralf Fassel@ralfixx@gmx.de to comp.lang.tcl on Tue Dec 10 19:25:36 2024
    From Newsgroup: comp.lang.tcl

    * Harald Oehlmann <wortkarg3@yahoo.com>
    | About the DLL, the unload or interpreter destruction should care.

    | To unload the DLL by "rename sha1 {}" would be an incredible feature I
    | don't want to think of. Users may use "unload <PathToDll>" to do so.

    Unloading the DLL when the command is deleted would have very surprising side-effects:

    # load the package
    package require some_pkg
    # use it to create an instance
    some_pkg::create_obj obj
    # done with that instance, get rid of it
    rename obj ""

    # use it to create another instance
    some_pkg::create_obj obj
    error: unknown command 'some_pkg::create_obj'
    # WTF?

    R'
    --- Synchronet 3.20a-Linux NewsLink 1.114