Skip to content
Tcl Source Code History Of Ticket 6dccab47cdf686a0
Login

History Of Ticket 6dccab47cdf686a0

Artifacts Associated With Ticket 6dccab47cdf686a0

  1. Ticket change [a9d76e1514] (rid 212111) by apnadkarni on 2023-04-09 08:24:13:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. 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.
      
    5. foundin initialized to: "8.7"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "48. Number Handling"
    15. title initialized to: "mathfunc::int incompatibility between 8.6 and 8.7"
    16. type initialized to: "Bug"
  2. Ticket change [3e38aef56a] (rid 212119) by chrstphrchvz on 2023-04-10 04:41:12:

    1. 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>.
      
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [e766a92538] (rid 212148) by apnadkarni on 2023-04-11 16:59:29:

    1. 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
      
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  4. Ticket change [3a4f5ec834] (rid 212734) by jan.nijtmans on 2023-04-13 15:49:33:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2460048.1594164"
    3. closer changed to: "jan.nijtmans"
    4. icomment: "It's described in TIP #514, so not a bug."
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"