|
From: Brian G. <bri...@ea...> - 2026-01-04 17:52:34
|
Hi Donal, Along with all these C standard updates, have you considered adding complex numbers to Tcl as a fundamental numeric value? -Brian On Jan 3, 2026, at 08:14, Donal Fellows <don...@ma...> wrote: Hi everyone I've been working on a new TIP with a collection of functions from C11 (well, mostly from C99 really) intended for Tcl 9.1. https://core.tcl-lang.org/tips/doc/trunk/tip/745.md C11 has many more standard functions than C89. We should give Tcl scripts access to that bounty. There's quite a few functions there (see the TIP for the list), but their embeddings in Tcl are mostly trivial; I won't speculate as to which ones are useful; that's for others to determine within their own contexts. The only ones that aren't utterly trivial are: * frexp * modf * remquo Those three all logically return two values, so I've mapped them as Tcl commands (not functions) that return lists of two items, which is an almost trivial embedding. (Also, I've extended signbitto work with integers as well; it's the only one for which that makes sense.) Donal. _______________________________________________ Tcl-Core mailing list Tcl...@li...<mailto:Tcl...@li...> https://lists.sourceforge.net/lists/listinfo/tcl-core |