Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d9841f3e63fc8f62f405a31c22b06f41183cd58f9d895b8fad4e5292bb695bc5
Ticket: a64ef79518060ba29843c08460a801d972edfb8c
Literal string representation
User & Date: beric on 2019-05-23 15:26:58
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    I have a code which generates a lot of lists in a namespace.
    A first version generated these lists inside braces:
    
    <verbatim>
      namespace eval GeneratedNamespace {
          variable List1 {
              element1 element2 ...
          }
          ...
      }
    </verbatim>
    
    But to avoid keeping string representation, I changed my code to generate [list...] instead.
    However, the string representation is still present.
    In fact, TclReleaseLiteral hashes the string representation, and even when the literal is not in the global literal table.
    
    Don't how if/how it would be possible to avoid such literals to be hashed.
    Or clean the string representation if it wasn't present before.
    
  5. foundin changed to: "8.6.9"
  6. is_private changed to: "0"
  7. login: "beric"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "beric"
  13. subsystem changed to: "47. Bytecode Compiler"
  14. title changed to: "Literal string representation"
  15. type changed to: "Bug"