_ptr and _srcptr types

Marc Glisse marc.glisse at inria.fr
Sat May 19 08:22:19 UTC 2018


On Mon, 14 May 2018, Torbjörn Granlund wrote:

>  I've personally always used the mpz_ptr and mpz_srcptr in functions that
>  take mpz arguments, taking the liberty to use this undocumented type.
>
> I suppose we could declare these.  I'd like to hear from the rest of the
> GMP "core team".

I am in favor of documenting them. I don't think we are losing much by 
exposing those types to the user, it seems hard to modify the 
implementation of mpz_t in a way that would break those types without 
breaking a lot of other things. The main question in my mind is how to 
document them so users don't get too confused about what they should use 
and when.

-- 
Marc Glisse


More information about the gmp-devel mailing list