Ilya Zakharevich on Thu, 17 Oct 2002 12:13:06 -0700

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

Re: functions returning int with 'l' protocodes.

On Thu, Oct 17, 2002 at 08:58:21PM +0200, Bill Allombert wrote:
> > On needs one letter for input, another for output.
> For now, only output is neccessary. And since we are going to redesign
> the system, it is not a high priority to allow installed functions
> to take an int. Especially since there is no 't_INT to C int' conversions
> routines in GP.

Sorry, but I can't consider this objection seriously.  Certainly you
know how to convert a long to an int in C?  ;-)

And all the error-handling is in

  if (l != (long)i)

> Even, I would not encourage the use of 'int' for whatever
> in PARI. Currently functions with return type 'int' are comparaison functions
> which only return either -1, 0 or 1.

Looks like you forgot about install()...