develooper Front page | perl.perl5.porters | Postings from February 2020

Re: chained comparisons

Thread Previous | Thread Next
From:
hv
Date:
February 7, 2020 13:16
Subject:
Re: chained comparisons
Message ID:
202002071258.017CwuP23731@crypt.org
Zefram via perl5-porters <perl5-porters@perl.org> wrote:
:hv@crypt.org wrote:
:>op.c:Perl_cmpchain_start looks to be missing a PERL_ARGS_ASSERT.
:
:There's nothing to assert, so that macro expansion is empty.  The dominant
:style seems to be to omit the reference to such no-op assertions.

Ok, I thought there was a porting test warning when they're missing,
but maybe that only warns on non-empty ones.

:>Also the tests are excellent for numeric compares, but don't appear
:>to touch the string compares or integer compares;
:
:I trust the preexisting tests to establish that the comparison ops
:individually work. [...]

Ok.

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