On 12/20/06, Jonathan Worthington <[EMAIL PROTECTED]> wrote:
Leopold Toetsch wrote:
> Am Mittwoch, 20. Dezember 2006 05:59 schrieb Will Coleda:
>
>> Are Hash and Array supposed to have different results on unset keys?
>>
>
> The .Undefs returned by Arrays are IMHO and unfortunate leftover of he early
PerlArrays. We've managed to change the return result of hashes to .Null, so this
should be possible with arrays too.
>
Changing the PMCs ain't hard. It's changing all the code that is getting
an undef back and testing for it that's the issue.
Patch attached that cleans up the code to return PMCNULL instead of
undef anyway. I don't really want to apply this until I hear a design
decision though, and preferably have time to fix some of the code in the
repository that depends on the difference (or have other people say they
are willing to help in that).
Thanks,
Jonathan
<snip patch>
this requires a coordinated effort. my suggestion is to dedicate a day
to this fix. we've already seen what successes come from hackathons
and bug days--i shouldn't need to justify this. this is a *perfect*
candidate for something similar.
let's pick a day within the next month to do this. we can either
dedicate the day to trunk changes, or perhaps create a special branch.
then we can apply, get smoke reports of breakage, analyze, assign
tasks, fix, review patches of non-committers, apply, and retest. the
most direct route to fixing this anomaly is by involving the
community.
~jerry