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

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

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

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.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About