Artifacts Associated With Ticket 6dccab47cdf686a0
Ticket change [a9d76e1514] (rid 212111) by apnadkarni on 2023-04-09 08:24:13:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
In 8.6, ``` % package require Tcl 8.6.13 % expr {int(0xffffffff)} -1 % tcl::mathfunc::int 0xffffffff -1 ``` In 8.7, ``` % package require Tcl 8.7a6 % expr {int(0xffffffff)} 4294967295 % tcl::mathfunc::int 0xffffffff 0xffffffff ``` As 8.7 should be fully compatible with 8.6, I would expect result would have been the same in the two cases. - foundin initialized to: "8.7"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "48. Number Handling"
- title initialized to: "mathfunc::int incompatibility between 8.6 and 8.7"
- type initialized to: "Bug"
Ticket change [3e38aef56a] (rid 212119) by chrstphrchvz on 2023-04-10 04:41:12:
- icomment:
I have been under the impression that 8.7 will only be ABI compatible with 8.6, and not necessarily script compatible. I believe this particular change is due to TIP 514. If one needs to perform signed truncation to a specific width then I would think they are better off using functions like: <pre> proc to_signed_32bit {x} {expr {(($x + 0x80000000) & 0xffffffff) - 0x80000000}} </pre> and that if they really need to know <tt>sizeof(long)</tt> then they can check <tt>$tcl_platform(wordSize)</tt>. - login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [e766a92538] (rid 212148) by apnadkarni on 2023-04-11 16:59:29:
- icomment:
I'm pretty sure 8.7 is expected to be compatible with 8.6 at the script level as well. But I could be wrong. I've never had a previous use for this function but ran into it when interactively conjuring (or trying to) specific internal representations for testing purposes from script level. /Ashok
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [3a4f5ec834] (rid 212734) by jan.nijtmans on 2023-04-13 15:49:33:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2460048.1594164"
- closer changed to: "jan.nijtmans"
- icomment: "It's described in TIP #514, so not a bug."
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- status changed to: "Closed"