| Ticket UUID: | 81ebe684b4a9d6ba82561ea8c276670ca27f502 | ||
| Title: | TclFindCompiledLocal() header comments are false | ||
| Type: | Bug | Created on: | 2025-05-30 17:46:24 |
| Submitter: | dgp | Assigned to: | dkf |
| Subsystem: | 47. Bytecode Compiler | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2025-06-13 14:08:55 |
| Status: | Open | Closed by: | nobody |
| Resolution: | None | Closed on: | |
| Version: | 8.6+ | ||
| Description: | ||||
The header comments say "If the variable's name is NULL, a new temporary variable is always created." If this were true, then callers of the wrapper macro AnonymousLocal() would never have to check for a TCL_INDEX_NONE return value. But it is not true. There are pathways through TclFindCompiledLocal() that lead to a return of TCL_INDEX_NONE. We need to get the story straight. | ||||
| User Comments: | ||||
dgp added on 2025-05-30 17:46:59:
FWIW, the comment was true in Tcl 8.5. | ||||
