summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
Diffstat (limited to 'generic')
-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 *)