Skip to content
Tcl Source Code View Ticket
Login

View Ticket

return manual page has a no longer valid example

Closed / Fixed211ac77119254ad2f9838a561b1f4b5070f5095fCreated 2 years agoUpdated 2 years ago
Descriptionplain2025-02-20 01:09:01
In return manual page example at

https://www.tcl-lang.org/man/tcl9.0/TclCmd/return.html#M19

there is this code snippet:

    set product [expr {$n * $factor}]
    if {$product < 0} {
        return -code error \
                "overflow computing factorial of $n"
    }

but Tcl integers no longer overflows since Tcl 8.5 (TIP#237)
Referenced by3
  • 7ee3539247Fix [211ac77119]: return manual page has a no longer valid example. avoid "can't read "::tcltestlib": no such variable" in tests *io-60.1 if load catches a fail for some reason check-in2025-02-24 21:33:10
  • ce39d32efdFix [211ac77119]: return manual page has a no longer valid example. avoid "can't read "::tcltestlib": no such variable" in tests *io-60.1 if load catches a fail for some reason check-in2025-02-24 21:30:05
  • 7741caf246Fix [211ac77119]: return manual page has a no longer valid example check-in2025-02-24 17:52:46
jan.nijtmanswiki2025-02-24 21:38:49

Fixed [here]

Thanks for the report!

Log in (anonymous is fine) to add a comment.