Re: [perl #63458] Null PMC access in isa() when callingnon-existant rule

2009-03-02 Thread Vasily Chekalkin
Patrick R. Michaud wrote: This is also related to RT #62948, where null values appear in arrays and other aggregates. Instead of adding a bunch of "is this value null" checks throughout the code, I'd prefer to look for a way to automatically promote nulls into undefs at the appropriate points

Re: [perl #63458] Null PMC access in isa() when callingnon-existant rule

2009-03-02 Thread Vasily Chekalkin
Patrick R. Michaud wrote: Is it feasible to catch all "Null PMC access" exceptions at the top-level, promote PMCNULL to Undef (or Failure) and resume from exception? Good thinking... but there's not anything to "promote" -- i.e., from an exception handler we wouldn't have the ability to change

Re: [perl #63458] Null PMC access in isa() when callingnon-existant rule

2009-03-02 Thread Patrick R. Michaud
On Tue, Mar 03, 2009 at 11:01:22AM +1100, Vasily Chekalkin wrote: > Patrick R. Michaud wrote: >>> Is it feasible to catch all "Null PMC access" exceptions at the >>> top-level, promote PMCNULL to Undef (or Failure) and resume from >>> exception? >> >> Good thinking... but there's not anything to "p

Re: [perl #63458] Null PMC access in isa() when callingnon-existant rule

2009-03-02 Thread Patrick R. Michaud
On Tue, Mar 03, 2009 at 10:21:33AM +1100, Vasily Chekalkin wrote: > Patrick R. Michaud wrote: >> This is also related to RT #62948, where null values appear in arrays and >> other aggregates. Instead of adding a bunch of "is this value null" checks >> throughout the code, I'd prefer to look for