Mark Dufour
Mark Dufour
will try to add pairwise, accumulate (no func=) for 0.9.9.
added pairwise, accumulate (including func, initial args).
added --float32/--float64/--int32/--int64/--int128 to override default float/int types. still need to check occurrences of #ifdef __SS_LONG and replace with int32_t/int64_t/__int128 cases.
check MSVC
this more or less works now, but not under windows as MSVC doesn't seem to have an __int128 builtin (not part of the C++ standard). so let's change the issue...
apparently there is a version available for MSVC, see comments here: https://stackoverflow.com/questions/6759592/how-to-enable-int128-on-visual-studio there is also an implementation in the 'abseil' (google) project. both are class-based, so not entirely native. so...
it's not a complete drop-in unfortunately. for example it doesn't support casting to float/double by providing operator float()/double().. adding a dependency on abseil also doesn't sound great. I guess best...
here is a proposal that may result in int128_t standardization, possibly in C++26 I guess: https://eisenwave.github.io/cpp-proposals/int-least128.html#existing-128-bit-integers if nobody really pushes for this, we can simply wait for C++26 or whenever...
error added for now, so it is at least clear that match-case is not supported.
this is the culprit: ``` if x not in list(range(8)) or y not in list(range(8)): ``` changing this to use int comparisons fixes the problem. there is an open issue...