develooper Front page | perl.perl5.porters | Postings from August 2001

RE: [PATCH] Add a nextstate into empty blocks

Thread Previous | Thread Next
Arthur Bergman
August 18, 2001 17:51
RE: [PATCH] Add a nextstate into empty blocks
Message ID:

>   sub label { foo: }
>   print label( "This isn't printed.\n" );
> The following patch fixes this by inserting a nextstate op into empty
> blocks.  No harmful effects are observed, although two test cases
> (op/sub_lval:31 and lib/warnings:255) fail because of minor changes in
> error messages.  (The former is IMHO an improvement.  The latter is a
> mystery to me, but doesn't seem a particularly serious issue.)

Could you please post the new error messages and why you want this behaviour to change? What does the backword compatibility police say?

This behavour seems to go away when the debugger is turned on, seems like a optimization issue?


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