MPFR version info

Jacek Blaszczynski jacek.blaszczynski at
Mon Jul 12 15:38:49 CEST 2004


>From perspective of creating GMP/MPFR  CLI environment languages bindings
(.NET and Mono) read-only variable would be useless!
P/Invoke mechanism, which is used to call functions in libraries outside CLI
runtime, does not allow to retrieve any constants or global variables in a
way other than through calling functions.
So please keep it as the function and perhaps equivalent function could be
very useful for GMP consumers as well. It could be against all coding
practices from C/C++ world but owuld help pther worlds to interoperate!
Anyway it does not have any impact on library performance.


-----Original Message-----
From: gmp-discuss-bounces at [mailto:gmp-discuss-bounces at] On
Behalf Of Torbjorn Granlund
Sent: Monday, July 12, 2004 2:03 PM
To: Patrick Pelissier
Cc: Sisyphus; gmp; mpfr at
Subject: Re: MPFR version info

Patrick Pelissier <Patrick.Pelissier at> writes:

  > GMP has the global constant 'gmp_version' which provides the GMP version
  > number. Is there a comparable constant with MPFR ? If not, how does one
  > determine the version of MPFR (from within a program) ?
   The CVS version has the function mpfr_version () which returns
  a constant string which is the version number at running time.

Why is it a function, and not a (read-only) variable as in GMP?

gmp-discuss mailing list
gmp-discuss at

More information about the gmp-discuss mailing list