The GMP Perl module and operator overloading

Sisyphus kalinabears at
Tue Dec 14 09:32:42 CET 2004


Something that I'm curious about:

When querying the third argument that the overload subroutine receives, 
the author uses (see GMP.xs):

if(order == &PL_sv_yes)

Why do it that way instead of:


I've no objection to the former approach - but the latter approach seems 
a little more obvious - and I'm wondering why it was not the chosen 
method. Is there some advantage in using the first method over the second ?

Like I said .... I'm just curious .... and wondering if there might be 
issues of which I'm unaware :-)


More information about the gmp-discuss mailing list