Skip Menu |

This queue is for tickets about the Tie-Array-Lazy CPAN distribution.

Report information
The Basics
Id: 39223
Status: resolved
Priority: 0/
Queue: Tie-Array-Lazy

People
Owner: Nobody in particular
Requestors: NUFFIN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Lazier should use exists()
exists($array[$i]) works by checking if the slot is to &PL_sv_undef (as opposed to an undef SV), and delete sets that. This even carries over between two arrays, and IMHO is a superior way of keeping track of of uninitialized state than definedness. If you'd like I can put together a patch
Fixed as suggested in 0.02. Dan the Maintainer Thereof On Fri Sep 12 11:31:01 2008, NUFFIN wrote: Show quoted text
> exists($array[$i]) works by checking if the slot is to &PL_sv_undef > (as opposed to an undef SV), > and delete sets that. This even carries over between two arrays, and > IMHO is a superior way of > keeping track of of uninitialized state than definedness. > > If you'd like I can put together a patch