Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8ac58e8d6a4daa38fcc84167b282a07b76f66b3c
Ticket: 2251175fffffffffffffffffffffffffffffffff
Expand ({*}), constants, and list syntax
User & Date: ferrieux on 2008-11-10 21:43:23
Changes

  1. icomment:
    
    Progress report: I now realize that this approach has problems. Maintaining proper line info while violating the "source in ROM" principle is tricky.
    I can think of two alternatives:
    (1) Delay the TclCopyAndCollapse by adding to tokens a flag bit TCL_TOKEN_COLLAPSE, so that only the clients of the parse tree (eval and compile) call TCAC at the latest possible moment (i.e. just when building the objv[]) and still operate on source-ROM for line info.
    (2) Consider compile-time expansion of literals as a rather useless optimization, and generate a runtime-expand instead.
    
    Don, Miguel, please advise !!!
    
    
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"
  4. username: "ferrieux"