|
2004-09-30
| ||
| 21:36 | • Closed ticket [1037454fff]: GET_WIDE_OR_INT assumes shimmer? plus 7 other ch... artifact: 14700b38e0 user: kennykb | |
| 19:09 | • Ticket [1037454fff]: 5 changes artifact: 3b2a47662b user: dkf | |
| 17:41 | • Ticket [1037454fff]: 1 change artifact: af794faf28 user: dkf | |
| 17:34 | • Ticket [1037454fff]: 4 changes artifact: c0ef8d9ba4 user: dkf | |
| 02:25 | • New ticket [1037454fff]. artifact: 6e8c623dd2 user: dgp | |
GET_WIDE_OR_INT assumes shimmer?
Closed / Works For Me1037454fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-30 02:25:12
The GET_WIDE_OR_INT macro in tclExecute.c appears to assume that a call to Tcl_GetWideIntFromObj will shimmer a Tcl_Obj to the "wideInt" Tcl_ObjType. I think recent revisions to the HEAD have made that no longer something that can be assumed.
dkfplain2004-09-30 17:34:41
Logged In: YES user_id=79902 This analysis is correct; the macro should be re-examined to see if it is still functioning as intended. (At least it's just one macro to be checked and not all the places where the macro is currently used!) Note that this is an area where shimmering between tclIntType and tclWideIntType is required to maintain the current semantics. Whether or not the current semantics is correct is a separate issue, of course. :^D
dkf Ticket [1037454fff]: 1 change
[History diff]2004-09-30 17:41:47
dkfplain2004-09-30 19:09:28
Logged In: YES user_id=79902 Correction: Tcl_GetWideIntFromObj() currently forces wide-int interpretation. This issue is something to watch out for going forward though; assigning to kbk as he's the guy gunning for the crazy aunts...
kennykbplain2004-09-30 21:36:23
Logged In: YES user_id=99768 Yes, I know. :) tclExecute.c is intimate with the tclObj.c data types. It's probably less than ideal, but it does squeeze out a bit more performance.
Log in (anonymous is fine) to add a comment.