Overview
| Artifact ID: | e27083002a104bf46a536307a281b0a51d2c3a6b926da094f99481cfcad275eb |
|---|---|
| Ticket: | e9a2715d912d86448a2ed18b2d25788cd50769b4
Tcl 8.6.11: Incompatible Tcl_GetRange() |
| User & Date: | jan.nijtmans on 2022-01-18 15:31:57 |
Changes
- icomment:
Thanks! I certainly see your point. Indeed Tcl_NewStringObj() and Tcl_NewUnicodeObj() behave as you describe. But there is also a code-path within Tcl_GetRange() which uses Tcl_NewByteArrayObj(), which doesn't behave that way. You have been lucky that using -1 worked .....! This also means that using -1 in the past never could be thrusted anyway, so it's up to us to define what should happen. I agree with you that handing it like an unofficial 'end' shortcut makes sense. I'll make the change.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"