Overview
| Artifact ID: | f2de97b5944eca4327ed1046b6142bc420a0ffd389d3fc315903c374475523cb |
|---|---|
| Ticket: | b5bd08df8d61b4ea9bf0cc885f790b367c430a9f
The "int" type registration should be restored. |
| User & Date: | apnadkarni on 2022-11-18 16:58:09 |
Changes
- icomment:
Using Tcl_GetIntFromObj etc. does not achieve the purpose because (for example) the value 1 will be successfully retrieved via the call by shimmering the string "1". The desired intent is that a Tcl_Obj created via Tcl_NewStringObj("1", -1) be passed to Excel as a string, while Tcl_NewIntObj(1) be passed as an int (VT_I4) and Tcl_NewWideInt(1) be passed as VT_I8. Having said that, I fully understand (and always did) that this is simply something Tcl cannot do reliably. It happened to work well in Tcl 8.6 specifically because of how Tcl was implemented, not because of any guarantees in the language or C API. It will not work well with 8.7. End users can either stick with 8.6 or move on to some other scripting language for COM, particularly if the component does not provide a type library. /Ashok - login: "apnadkarni"
- mimetype: "text/x-markdown"