[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: const char * in mpz_get_str ? + mpz_fits_schar_p

From: Kevin Ryde
Subject: Re: const char * in mpz_get_str ? + mpz_fits_schar_p
Date: Thu, 16 May 2002 08:41:38 +1000
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i386-debian-linux-gnu)

Sylvain Pion <address@hidden> writes:
> Moreover, consistency with the existing mpz_fits_* seems good.

I guess there's quite a few types that could have fits functions.
Maybe it'd be more flexible to have something like

        mpz_fits_si (z, SCHAR_MIN, SCHAR_MAX)

which would basically do a range check.  Perhaps call it
mpz_between_si.  That might also help folks not using a full type, but
reserving a couple of tag bits, eg. lisp, smalltalk, haskell etc.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]