Tcl Source Code

View Ticket
Login
Ticket UUID: 941d52a3e505dab6b393465937041fc0abf1b571
Title: [dict with] discards string rep even when it doesn't modify the dictionary
Type: Bug Created on: 2017-08-24 12:51:12
Submitter: pooryorick Assigned to: nobody
Subsystem: 16. Commands A-H Severity: Minor
Priority: 5 Medium Last modified: 2017-08-24 12:51:12
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: 8.6.6
Description:

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