Function return values in GMP?
Hans Aberg
haberg at math.su.se
Mon Feb 27 00:52:29 CET 2006
On 27 Feb 2006, at 00:33, Décio Luiz Gazzoni Filho wrote:
> On Feb 25, 2006, at 9:30 PM, James Wheaton wrote:
>
>> I find it very irritating and redundant that none of
>> the GMP functions return GMP-type variables.
> However, and especially considering
> that C has no function overloading like C++ does, ...
Even when using C++, it is unwise to return values, especially for
dynamically allocated variables, due to the time it takes, unless one
uses some kind a reference method (like a reference count).
Hans Aberg
More information about the gmp-discuss
mailing list