Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2012-05-26
20:57 • New ticket [3530007fff] (Dummy) arguments of a proc with same name. artifact: 340093bddb user: zoltan3

(Dummy) arguments of a proc with same name

Open3530007fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2012-05-26 20:57:14
"proc a {a a} {puts $a} ; a 1 2" writes "1" to stdout. Generally, args with identical names are placeholders, but this result is weird. E.g. "foreach {a a} {1 2} {puts $a}" writes "2" to stdout, so, I would see "2" by the proc "a" too.
Anyway, the documentation should contain the correct behavior, I think.
Log in (anonymous is fine) to add a comment.