Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f5ebd2b029531af10c2c29be20dceead4453c21d
Ticket: 536831ffffffffffffffffffffffffffffffffff
Tcl_SubstObj: add precompilation
User & Date: dgp on 2003-03-08 03:42:53
Changes

  1. assignee changed to: "dkf"
  2. icomment:
    
    
    File Added - 44395: subst.patch
    
    Logged In: YES 
    user_id=80530
    
    
    Here's a patch that completely
    replaces Tcl_SubstObj() with
    a new implementation that makes
    use of the same (slightly modified)
    internal parsing and substitution
    engines as normal script evaluation.
    
    The script-level difference that will
    be seen is reflected in the 7 tests
    in subst.test that fail after applying this
    patch.  They fail because this patch
    changes the way [subst] deals with
    parsing errors.  As requested by
    this Feature Request (and in agreement
    with the way "-quoted words get substituted
    in normal Tcl scripts), after applying this
    patch parsing errors will be detected and
    reported before anything else.
    
    This patch also paves the way for a
    larger cleanup in the inner evaluation
    routines, making them smaller and simpler
    (see FR 684982).
    
    This patch also fixes Bug 685106.
    
    By making better code re-use, this patch
    also set the stage for any parsing
    improvements for normal script evaluation
    (for example, a Tcl_ObjType that caches
    pased token sequences) to equally benefit
    the [subst] command.
    
    
  3. login: "dgp"
  4. mimetype: "text/plain"
  5. username: "dgp"