develooper Front page | perl.perl5.porters | Postings from August 2010

Re: [perl #76756] PATCH: srand returns the seed

Thread Previous | Thread Next
From:
Zefram
Date:
August 2, 2010 07:41
Subject:
Re: [perl #76756] PATCH: srand returns the seed
Message ID:
20100802144121.GH21668@lake.fysh.org
Nicholas Clark wrote:
>I can see one potential crafty way to avoid the above inconsistency, which
>is to change sv_2pv_flags() so that it doesnt (completely) cache the string
>conversion for -0.

Eww.  This would violate the truth value rule, by having something that
stringifies as "-0" but is false.  Don't do it.

-zefram

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