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

RE: [PATCH] Add a nextstate into empty blocks

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
August 18, 2001 17:51
Subject:
RE: [PATCH] Add a nextstate into empty blocks
Message ID:
08ee01c12849$e80d6480$052aa8c0@foo


>   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?

Arthur




Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About