summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2018-09-26 13:09:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2018-09-26 13:09:20 (GMT)
commit9aa47b2cfa64ee148cbc6dace75fbab5a48209b8 (patch)
tree6fa4b30f6e7589882762e8c817b997a3dbca5fd3
parent761a7867d59650fe2a632e377c216fc8b39beaf3 (diff)
downloadtcl-9aa47b2cfa64ee148cbc6dace75fbab5a48209b8.zip
tcl-9aa47b2cfa64ee148cbc6dace75fbab5a48209b8.tar.gz
tcl-9aa47b2cfa64ee148cbc6dace75fbab5a48209b8.tar.bz2
Improved comment.
-rw-r--r--generic/tclVar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 8860df5..cafa6a3 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -1431,7 +1431,9 @@ TclPtrGetVarIdx(
}
if (TclIsVarArrayElement(varPtr) && !arrayPtr) {
/*
- * UGLY! Peek inside the implementation of things.
+ * UGLY! Peek inside the implementation of things. This lets us get
+ * the default of an array even when we've been [upvar]ed to just an
+ * element of the array.
*/
ArrayVarHashTable *avhtPtr = (ArrayVarHashTable *)