develooper Front page | perl.perl5.porters | Postings from December 2017

Re: [perl #132589] experimental bitwise feature breaks PDL's &operator

Thread Previous | Thread Next
December 18, 2017 12:32
Re: [perl #132589] experimental bitwise feature breaks PDL's &operator
Message ID:
Sisyphus via RT wrote:
>I need to find out:
>1) How does the XSub establish that the caller has enabled the bitwise 

From the fifth argument supplied to the xsub.  But Math::GMP has no need
to know that, because its bitwise operators only provide numeric behaviour
in any case.  There's no difference to Math::GMP between the old ambiguous
conjunction and the new numeric-only conjunction.  Math::GMP::band()
should ignore the fifth argument (and the fourth, and the third).

>2) How does the XSub silence the warning.

It doesn't.  The warning happens in the calling scope, which is where
the bitwise feature is enabled, and it can be silenced by that scope's
warning flags.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About