Overview
| Artifact ID: | 0a81fa376704ffcf91bdafbee2258a59c253ac54 |
|---|---|
| Ticket: | 1176470fffffffffffffffffffffffffffffffff
Invoke *_*Init() for each [load] |
| User & Date: | eriklns on 2005-04-04 16:31:24 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
L.S. Two unexpected results occur when importing packages which load compiled code: 1. When doing [package forget], the entry of the corresponding shared library is not removed from what's returned by [info loaded]. 2. After having done [package forget], and issuing again [package require], an error message is returned: "can't find package ..." An example session that exercises the above sequence for Tkhtml and Tktable is appended to this message. A discussion in c.l.t. (started at 4-Apr-2005, featuring Michael Schlenker, Don Porter and yours truly) arrived at the point where dgp judges there is either a bug here or a misfeature. Erik Leunissen ============== Example Tcl session: --------------- % info loaded {{} Tk} % package require Tkhtml 2.0 % info loaded {/usr/lib/tk8.4/../libtk8.4.so Tk} {/usr/local/lib/Tkhtml2.0/libTkhtml2.0.so Tkhtml} {{} Tk} % package forget Tkhtml % info loaded {/usr/lib/tk8.4/../libtk8.4.so Tk} {/usr/local/lib/Tkhtml2.0/libTkhtml2.0.so Tkhtml} {{} Tk} % package require Tkhtml can't find package Tkhtml % package require Tktable 2.8 % info loaded {/usr/local/lib/Tktable2.8/libTktable2.8.so Tktable} {/usr/lib/tk8.4/../libtk8.4.so Tk} {/usr/local/lib/Tkhtml2.0/libTkhtml2.0.so Tkhtml} {{} Tk} % info loaded {/usr/local/lib/Tktable2.8/libTktable2.8.so Tktable} {/usr/lib/tk8.4/../libtk8.4.so Tk} {/usr/local/lib/Tkhtml2.0/libTkhtml2.0.so Tkhtml} {{} Tk} % package forget Tktable % info loaded {/usr/local/lib/Tktable2.8/libTktable2.8.so Tktable} {/usr/lib/tk8.4/../libtk8.4.so Tk} {/usr/local/lib/Tkhtml2.0/libTkhtml2.0.so Tkhtml} {{} Tk} % package require Tktable can't find package Tktable -- end of message -- -- leunissen@ nl | Merge the left part of these two lines into one, e. hccnet. | respecting a character's position in a line. - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "eriklns"
- subsystem changed to: "None"
- title changed to: "Registration of [loaded] packages"
- type changed to: "RFE"