develooper Front page | perl.perl5.porters | Postings from May 2008

Re: bug or not? constants warn only once

Thread Previous | Thread Next
Rick Delaney
May 4, 2008 09:33
Re: bug or not? constants warn only once
Message ID:
On May 03 2008, Nicholas Clark wrote:
> On Sat, Apr 26, 2008 at 06:44:09PM +0100, Nicholas Clark wrote:
> > Do the appended tests codify the behaviour we desire?
> > Anything I've missed that would be necessary to nail down this behaviour?
> I was rather hoping that *someone* might answer these questions, because
> I wanted to commit the TODO tests to core and suggest them for a bounty from
> the programme.

FWIW, I think the tests describe exactly how things should behave.  For
those too lazy to wade through the tests:

    for (@numerous_attempts) {
        # print the same thing every time:
        print some_transform_of("string constant");

        # warn every time:
        function_that_expects_number("string constant");

Rick Delaney

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