New feature in #Tcl 9.1 – part 7:
Many C99 math routines are now available as expr functions: acosh, asinh, atanh, cbrt, exp2, expm1, log1p, log2, logb, erf, erfc, gamma, lgamma, copysign, dim, fma, ldexp, nextafter, remainder, signbit
Quite some new fun ahead, no?
New feature in #Tcl 9.1 – part 6:
New `switch` option: -integer
The existing pattern matching was not always good for numeric values. Now there is an efficient way. Example:
set x 0o37
switch -integer -- $x 37 {puts "false match"} 0x1f {puts "match"}
NaviServer version 4.99.35, 5.0.7, and 5.1.2 are now available.
The most important fix in these patch releases is for outbound TLS server identity verification.
🔗
New feature in #Tcl 9.1 – part 5:
`subst` options: -backslashes, -commands, -variables
The `subst` command only had `-no...something` options to suppress a specific substitution. You can now do the opposite, enforce a specific one, e.g. `-commands`.
The "calc" package is there, version 1.0.20, building on a pure-Tcl package but now as a C extension so it is much faster. What the package is for? For stuff like this:
: { a=3; b=4; c=5; x = a*b + c; y = x > 10 ? x : -x; y++}
🔗