[Fwd: Re: new mpfr release]
Patrick Pelissier
Patrick.Pelissier at loria.fr
Thu Sep 25 13:32:47 CEST 2003
Why don't add for mpz/mpq/mpfr the varargs list version of
init/init2/clear ?
mpx_t x, y, z, a, b, c;
mpx_init_s (x, y, z, NULL);
mpx_init2_s(50, a, b, c, NULL);
...
mpx_clear_s (x, y, z, a, b, c, NULL);
It is quite annoying when you have to init/clear multiple variables.
Patrick Pelissier
-------- Original Message --------
Subject: Re: new mpfr release
Date: 25 Sep 2003 01:45:33 +0200
From: Torbjorn Granlund <tege at swox.com>
To: Patrick Pelissier <Patrick.Pelissier at loria.fr>
CC: mpfr at loria.fr
References: <200309221318.PAA14902 at leibniz.loria.fr>
<87u173oyzg.fsf at zip.com.au> <3F718088.2040107 at loria.fr>
<87wubxhmfl.fsf at zip.com.au> <86y8wd3hi8.fsf at king.swox.se>
<878yodhicd.fsf at zip.com.au>
Kevin Ryde <user42 at zip.com.au> writes:
Torbjorn Granlund <tege at swox.com> writes:
>
> What do these functions do?
A varargs list of mpfr_t's to init or clear,
mpfr_t x, y, z;
mpfr_inits (x, y, z, NULL);
...
mpfr_clears (x, y, z, NULL);
Please consider taking these out for now, for interface
consistency.
In the future, I think it would be a good idea to bring
this sort of general interface additions/modifications
up with gmp-devel at swox.com.
--
Torbjörn
More information about the gmp-devel
mailing list