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

Re: Missing sv_numeq() function?

Thread Previous | Thread Next
From:
hv
Date:
September 14, 2021 14:51
Subject:
Re: Missing sv_numeq() function?
Message ID:
202109141404.18EE4ZP24520@crypt.org
sisyphus <sisyphus359@gmail.com> 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'.

Hugo

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