Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 05aa4cb243bcc0adc0f29c6898c450378f86ff1f
Ticket: 46f801ea5a25e2885588864ef2096fff09edd08a
Tcl bug: unexpected stack trace in "unknown"
User & Date: dgp 2017-06-23 13:33:05
Changes

  1. assignee changed to: "dgp"
  2. icomment:
    
    bigfaceworm had the right idea. The autoloader
    doesn't cope with [tailcall] or any other mechanism
    where a command can erase itself from the stack trace.
    Simplified demo:
    
    % array set auto_index {demo {proc demo {} {tailcall error foo}}}
    % demo
    Tcl bug: unexpected stack trace in "unknown"
    
    Since Itcl 4 started using [tailcall] in its fundamentals,
    this flaw hurts autoloaded Itcl code bad, and that's a bad
    habit most Itcl users persist in.
    
  3. login: "dgp"
  4. mimetype: "text/plain"