Bill Allombert on Thu, 17 Oct 2002 11:03:25 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: functions returning int with 'l' protocodes. |
On Wed, Oct 16, 2002 at 10:45:02PM -0700, Ilya Zakharevich wrote: > On Thu, Oct 17, 2002 at 01:13:54AM +0200, Karim BELABAS wrote: > > > > FIx involves either add a new letter code for integers, or > > > > `upgrade' all functions return int to long. > > > > The second option seems better. > > > > > > So Karim, what do you prefer ? > > > > The whole point of the install() machinery is to be able to include as many > > external routines as possible without recompiling the library. Since there's > > no reason to forbid 'int' return types, I'd rather add a new parser code. And > > introduce RET_INT, RET_LONG, RET_VOID as per your patch proposal. While I do not like PARI code to behave differently on 32bit/64bit, I agree that adding support for int is desirable. > Can you decide on the letter, so that I can upgrade Math::Pari? Would 'i' be OK for every one ? Cheers, Bill