diff options
author | dgp <dgp@users.sourceforge.net> | 2016-03-17 12:24:05 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-03-17 12:24:05 (GMT) |
commit | 3126fa7b7c8fbc9d56eab9916693e0641cdd25de (patch) | |
tree | 99f1c7727524dd7f8cb932c866a5a8a8316ee396 /generic | |
parent | ba96ade25a6b00ff4945834090a8de52b1147204 (diff) | |
parent | b1d25860c469bbaccef10bb6a596fb93d397b2b0 (diff) | |
download | tcl-3126fa7b7c8fbc9d56eab9916693e0641cdd25de.zip tcl-3126fa7b7c8fbc9d56eab9916693e0641cdd25de.tar.gz tcl-3126fa7b7c8fbc9d56eab9916693e0641cdd25de.tar.bz2 |
[1a25fdfec6] Enable compile of commands like [variable ${ns}::v].
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCompCmdsGR.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclCompCmdsGR.c b/generic/tclCompCmdsGR.c index e674fb0..87ed745 100644 --- a/generic/tclCompCmdsGR.c +++ b/generic/tclCompCmdsGR.c @@ -2966,10 +2966,12 @@ IndexTailVarIfKnown( } else { full = 0; lastTokenPtr = varTokenPtr + n; - if (!TclWordKnownAtCompileTime(lastTokenPtr, tailPtr)) { + + if (lastTokenPtr->type != TCL_TOKEN_TEXT) { Tcl_DecrRefCount(tailPtr); return -1; } + Tcl_SetStringObj(tailPtr, lastTokenPtr->start, lastTokenPtr->size); } tailName = TclGetStringFromObj(tailPtr, &len); |