Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2f162d8aad207ec463fc0a39f8969bb8c582146e
Ticket: 1938497fffffffffffffffffffffffffffffffff
Make stubs tables static const
User & Date: das on 2008-04-09 20:37:05
Changes

  1. icomment:
    Logged In: YES 
    user_id=90580
    Originator: YES
    
    Alexandre,
    the stubs mechanism is precisely equivalent to a shared library mechanism a la dlsym, except that "symbol lookup" does not rely on symbol names (nor OS functionality to resolve them) but on a fixed slot number in a table of function pointers. The compatibility guarantee is that the slot numbers do not change from release to release.
    
    I am unaware of any statements that changing the entries in the stubs table at runtime is a supported mechanism to override tcl functions (and doing that would not work anyway in all cases, as mentioned not all functions calls go through the stubs tables, in particular calls from inside the core itself are just normal functions calls unaware of the stubs table...)
    
    
  2. login: "das"
  3. mimetype: "text/plain"
  4. username: "das"