Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 25373ebfa7179eb6ea41c34b6ca243ba52e7e3fd
Ticket: ba79c2f0ce408c09c8967eb037503251c4b525ac
Use of Itcl with auto load and namespace import result in command errors
User & Date: dgp on 2017-02-21 18:05:41
Changes

  1. icomment:
    
    Itcl replaces the [::auto_import] with its own customized
    version.
    
    The customized approach adds another layer of indirection.
    On [namespace import] all indexed auto-load-able commands
    have stub-versions created, which will then only invoke
    the actual auto-loading when the are called.
    
    The problem with this is that it misses the
    [namespace export] command that takes place when the
    actual auto-loading [source]s the implementation.
    With out an enabling [namespace export], the
    [namespace import] fails to get the auto-loaded
    command.
    
    This is so broken, I cannot imagine anyone wishing
    for this, but since I'm not an Itcl user it's hard
    to say with any confidence.
    
  2. login: "dgp"
  3. mimetype: "text/plain"