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

Re: Missing sv_numeq() function?

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
August 20, 2021 12:26
Subject:
Re: Missing sv_numeq() function?
Message ID:
20210820132637.3b96f408@shy.leonerd.org.uk
On Fri, 20 Aug 2021 11:55:00 +0100
"Paul \"LeoNerd\" Evans" <leonerd@leonerd.org.uk> wrote:

> As far as I can tell there isn't an equivalent numerical one, for
> `==`. I've had to write myself a 47 line wrapper function by copying
> out the logic from Perl's (non-API-exposed) Perl_do_ncmp() function.

For further context:

  https://metacpan.org/release/PEVANS/Syntax-Keyword-Match-0.07/source/lib/Syntax/Keyword/Match.xs#L35-85

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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