develooper Front page | perl.perl5.porters | Postings from July 2004

Re: more 5.9 sort tests

From:
Rafael Garcia-Suarez
Date:
July 21, 2004 06:16
Subject:
Re: more 5.9 sort tests
Message ID:
20040721151253.097e19d3@localhost
Nicholas Clark wrote:
> Based on my memory of the thread David figured a way to test sort stability
> without resorting to overloading, by using <=> and not-really-numbers
> rather than the complex overloading games I thought of.

Yes, but in this case what does mean the comment :
> > > +# test that optimized {$b cmp $a} remains stable (new in 5.9)
> > > +# without overloading

> However, the patch isn't warnings clean, which given that sort.t runs under
> warnings, isn't going to fly.

Easily fixable, just like the test count :)



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About