Bill Allombert on Tue, 10 Sep 2002 11:37:22 +0200


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

gnil


Hello PARI devel,

The magic gnil object is static in GP.
This mean a C function is either 'void' and always return nothing (gnil) or
not 'void' and never return nothing (gnil) but 0 instead.

Consider now the GP script
f(x)=if(x,1)
We have
? f(1)
%9 = 1
? f(0)
?
This behaviour cannot be emulated by GP2C.

Cheers,

Bill.