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

Re: bug or not? constants warn only once

Thread Previous | Thread Next
From:
Rick Delaney
Date:
May 4, 2008 09:33
Subject:
Re: bug or not? constants warn only once
Message ID:
20080504163349.GD7419@bort.ca
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 Vienna.pm 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
rick@bort.ca

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