develooper Front page | perl.perl5.porters | Postings from October 2016

Bug in setting of POK flag ?

Thread Next
From:
sisyphus1
Date:
October 26, 2016 01:35
Subject:
Bug in setting of POK flag ?
Message ID:
DE8139DD436B4138BB3F1381F76A0A66@OwnerPC311012
Hi,

By way of demonstration:

##########################
use Devel::Peek;

$x = 1.75;
$y = 2.25;

Dump $x;
print $x;
Dump $x;
if($y ne 'hello') {Dump $y}
#########################

$x and $y initially have (NOK, pNOK) flags set.
And with perl 5.20 and later, that's the way it stays.

But with perl 5.18 and earlier, both $x and $y end up with 
(NOK,POK,pNOK,pPOK) flags set.

Which is the correct behaviour ?

Of course, I haven't checked *all* versions of perl. I have looked at 5.8.8, 
5.8.9, 5.x.0 (for x = 10, 12, 14, 16, 18, 20, 22, and 24) and 5.25.6 - all 
on MS Windows.

Cheers,
Rob 


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