|
From: Arjen M. <Arj...@de...> - 2026-01-04 13:10:57
|
Hi Donal, I was curious about these functions and stumbled on dim(), or in C fdim(). I know that function from FORTRAN 77 and it may even be older than that. I have never seen it used in practice, at least not that I can remember. What is the rationale for adding this function to the C standard? Do you have any idea? Regards, Arjen From: Donal Fellows <don...@ma...> Sent: zaterdag 3 januari 2026 17:14 To: Tcl Core <tcl...@li...> Subject: [TCLCORE] New TIP: 745: Functions from C11 Caution: This message was sent from outside of Deltares. Please do not click links or open attachments unless you recognize the source of this email and know the content is safe. Please report all suspicious emails to "Ser...@de...<mailto:Ser...@de...>" as an attachment. 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 signbit to work with integers as well; it's the only one for which that makes sense.) Donal. DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |