MPFR version info

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


Hello!

>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.

Jacek

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

Patrick Pelissier <Patrick.Pelissier at loria.fr> 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?

--
Torbjörn
_______________________________________________
gmp-discuss mailing list
gmp-discuss at swox.com
https://gmplib.org/mailman/listinfo/gmp-discuss




More information about the gmp-discuss mailing list