Literal string representation
Opena64ef79518060ba29843c08460a801d972edfb8cCreated 8 years agoUpdated 8 years ago
Descriptionwiki2019-05-23 15:26:58
I have a code which generates a lot of lists in a namespace.
A first version generated these lists inside braces:
namespace eval GeneratedNamespace {
variable List1 {
element1 element2 ...
}
...
}
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.
Log in (anonymous is fine) to add a comment.