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

Re: chained comparisons

Thread Previous | Thread Next
February 7, 2020 13:16
Re: chained comparisons
Message ID:
Zefram via perl5-porters <> wrote: 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. [...]



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