[GiNaC-list] archive/unarchive on functions with a variable number of arguments

Richard B. Kreckel kreckel at in.terlu.de
Wed Apr 8 00:13:11 CEST 2020


On 06.04.20 14:23, Vladimir V. Kisil wrote:
> 	It seems there is indeed an issue with archiving zeta2, since
>    both versions has the same name (it may be similar issues with other
>    overloaded function names). I do not know what is zeta, but I am
>    attaching a patch fixing it. To have the same printout of the function
>    as before, a new function zeta2_print_dflt() has to be introduced.

Thanks a lot for the patch!

I think we can do a little bit better in this case: The archive contains 
the function's number of parameters - after all the parameters are 
stored in it. So, let's use this information and try a little harder 
matching the correct overload when reading the archive node.

I've committed a fix.


PS: Vladimir, I can't believe that you don't know what zeta is.  :)

More information about the GiNaC-list mailing list