Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 109a8b0ccffb638075d79c2f7683b39312c1cc55
Ticket: 1366195fffffffffffffffffffffffffffffffff
Use TCL_DSTRING_STATIC_SIZE rather than assume size
User & Date: dgp on 2006-04-04 00:55:46
Changes

  1. icomment:
    Logged In: YES 
    user_id=80530
    
    
    No, all users of
    TCL_DSTRING_STATIC_SIZE
    ought to use the value
    given to them in tcl.h.
    
    Because we specify a
    value publicly, we would
    have to think carefully
    before ever changing it, in
    case some extensions use of
    the value in an old header
    conflcts with the new value
    we would want in a new header.
    
    So, making any change to
    this value makes sense only
    in very narrow circumstances,
    like someone customizing Tcl
    for their own specialized needs
    (low-memory environment?) and
    maintaining enough control to
    not run into the "old extension"
    problem.
    
    The change that would help them
    a bit would be to patch Tcl's
    source code so that it did not
    assume a value of 
    TCL_DSTRING_STATIC_SIZE, but
    just used whatever value the
    header provided.
    
    The patch submitted did the
    opposite, setting a limit
    on what value of 
    TCL_DSTRING_STATIC_SIZE can
    get set.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"