Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c1e465c8cff2255ded7c1371e08a15953a166447
Ticket: 924045ffffffffffffffffffffffffffffffffff
wider use of TclWordKnownAtCompileTime()
User & Date: andreas_kupries on 2006-10-06 01:24:01
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    I have now compared the two functions, i.e. "TclIsLiteral"
    and "TclWordKnownAtCompileTime". The general logic used by
    both to decide the issue is identical (I am very glad to see
    this, as it means that my understanding of the Token types
    is likely correct).
    
    What "TclWordKnownAtCompileTime" does beyond "TclIsLiteral"
    is to actually assemble the literal value, if requested.
    
    Note: The tclpro checker has commands to decide literal-ness
     and for assembly of the actual literal as well, based on
    the  token list structure returned by the commands of the
    Tclparser package (exposing the core parser to the script
    level). I wonder if something can be done to expose
    'TclWordKnownAtCompileTime' as well.
    
    I will remove my TclISLiteral form the patch for 8.5, and
    for 8.4 I will rename my function, but keep the reduced API,
    i.e. no assembly of a value, only deciding literalness.
    However this way the 8.5 function can be seen as 'obvious'
    extension of the conditional one going into 8.4 for TIP 211ng
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"