|
From: Donal F. <don...@ma...> - 2026-01-05 08:39:49
|
As a thought experiment and reading the notes here<https://en.cppreference.com/w/c/numeric/complex.html>, I suspect an initial take on that would be to make complex numbers be one of the things recognised by Tcl_GetNumberFromObj() (perhaps a TCL_NUMBER_COMPLEX type code?) and then all the places where that family of constants are tested for would need to gain an extra case. The declarations of many unary and binary functions would become a bit more complicated, as there would now be two possible implementation functions (not all things in <math.h> have equivalents in <complex.h>, and __STDC_NO_COMPLEX__ might be defined). But there's apparently many tricky edge cases in support, including specifically for MSVC. Yep, not digging into the details of this any further. It really isn't pressing for me... Donal. ________________________________ From: Brian Griffin <bri...@ea...> Sent: Monday, January 05, 2026 06:01 To: Donal Fellows <don...@ma...> Cc: Tcl Core List <tcl...@li...> Subject: Re: [TCLCORE] New TIP: 745: Functions from C11 ZjQcmQRYFpfptBannerEnd Thanks for the encouragement! :) I may take a crack at it once I get some free time. |