|Bill Allombert on Fri, 20 Nov 2015 14:23:10 +0100|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: Can we remove coeff()?|
On Fri, Nov 20, 2015 at 01:56:20PM +0100, Jeroen Demeyer wrote: > Hello pari-dev, > > can the macro coeff() be removed from <paricast.h>? We have gcoeff() > which does the same thing and which is also documented (coeff is not > in the documentation). gcoeff does not do the same thing. coeff() is used for 'MATSMALL' (i.e. Flm). It is a traditional libpari interface (older than gcoeff), so we cannot easily remove it. It is used more than 100 times in libpari. > The coeff() macro conflicts with NTL. It's especially bad because > coeff() is a macro and macros do not care about C++ namespaces. You can always do #undef coeff after including pari.h Cheers, Bill.