Get the variable type

Torbjorn Granlund tg at swox.com
Mon May 10 11:40:34 CEST 2004


Sisyphus <kalinabears at iinet.net.au> writes:

  Is there a way to query a variable as to whether it is a mpz_t, a mpf_t, a
  mpq_t, or a mpfr_t ?

Not sure I understand your quesion.

As I assume you know, the C languages doesn't have anything like
that.  The type isn't saved in each variable of the type.

If you hae debugging enabled, type information exists in the
executable.  But there is not portable way to access it.

-- 
Torbjörn


More information about the gmp-discuss mailing list