Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[dict with] discards string rep even when it doesn't modify the dictionary

Open941d52a3e505dab6b393465937041fc0abf1b571Created 9 years agoUpdated 9 years ago
Descriptionwiki2017-08-24 12:51:12
The following example illustrates that [dict with] discards the string representation of a value even when it doesn't modify the dictionary:

set data {
	one 1
	two 2
}
puts $data ; # newlines are visible in the data
dict with data {}
puts $data ; # newlines are missing from the data
Log in (anonymous is fine) to add a comment.