develooper Front page | perl.perl5.porters | Postings from September 2021

Re: Missing sv_numeq() function?

Thread Previous | Thread Next
September 14, 2021 14:51
Re: Missing sv_numeq() function?
Message ID:
sisyphus <> wrote:
:On investigation, it seems that sv_numeq() is performing the division
:that's implicit in the rationals, resulting in 2 doubles that contain the
:same value (0.1). Unsurprisingly it therefore returns true.

Right, it is not honouring overloaded '==', instead taking the overloaded
numify of both sides.

A quick look suggests to me that sv_eq_flags is similarly not looking for
overloaded 'eq'.


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