Overview
| Artifact ID: | a03d6457425aa63e134cfca75af18cd0d8e39355 |
|---|---|
| Ticket: | 600812ffffffffffffffffffffffffffffffffff
upvar can create unusable variable |
| User & Date: | dgp on 2003-11-10 22:33:38 |
Changes
- icomment:
Logged In: YES user_id=80530 It seems this misfeature is documented in upvar.n, and has been documented this way "forever" (since at least Tcl 7.4). Makes me wonder whether this made sense at one pont, and variable parsing rules have changed over the years to more aggressively recognize arrays? Seems we ought to have a brief TIP, if only to let the wise old men have a look and confirm we're not overlooking something. Otherwise, the patch looks fine. If it's not too much trouble, I'd update your new tests to use the -returnCodes option. You might also want to note in your new code in ObjMakeUpvar that your detection of a bad name for a scalar is consistent (and must remain consistent) with the code in TclObjLookupVar (currently line 447).
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"