Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0a81fa376704ffcf91bdafbee2258a59c253ac54
Ticket: 1176470fffffffffffffffffffffffffffffffff
Invoke *_*Init() for each [load]
User & Date: eriklns on 2005-04-04 16:31:24
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "eriklns"
  9. subsystem changed to: "None"
  10. title changed to: "Registration of [loaded] packages"
  11. type changed to: "RFE"