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

Re: [perl #3719] perl_eval_{sv,pv} does not trap syntax errors

Thread Previous | Thread Next
Leon Timmermans
September 26, 2010 15:44
Re: [perl #3719] perl_eval_{sv,pv} does not trap syntax errors
Message ID:
On Mon, Jul 26, 2010 at 3:18 AM, George Greer via RT
<> wrote:
> My embed-fu is weak, but it appears to be a simple fix.
> or attached.

Disclaimer: I have embed-fu, but not so much internals-fu.

The G_KEEPERR flag seems to affect eval in at least 3 places
1) in doeval, right before compilation is tried.
2) in pp_leave, as the very last thing is does. I think this is only run on
3) in eval_sv, right after a successful eval.

I suspect this patch has a wider impact than intended. I don't really
know if that's really a problem though.

Also, the fact that this G_KEEPERR behavior of eval_sv is not
documented bothers me.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About