develooper Front page | perl.perl5.porters | Postings from January 2011

Re: [PATCH] Make goto into a construct an error

Thread Previous
From:
Gerard Goossen
Date:
January 9, 2011 02:42
Subject:
Re: [PATCH] Make goto into a construct an error
Message ID:
20110109104220.GC15381@ggoossen.net
On Fri, Jan 07, 2011 at 09:00:07PM +0000, Zefram wrote:
> Gerard Goossen wrote:
> >The patch makes goto into a construct into an error, as this
> >is not supported by the codegeneation step.
> 
> Not applying this, because we're not using the codegen patch for the
> time being.
> 
> If we did want to make inward goto fatal, the patch would have to
> include appropriate edits to pod/perldiag.pod.  Specifically, we'd
> want to remove <Use of "goto" to jump into a construct is deprecated>
> and add an entry for <Can't "goto" into a construct>.  And *not* add
> to the grandfather list in t/porting/diag.t that is labelled "PLEASE DO
> NOT ADD TO THIS LIST".

Thnx, I also updated the perlfunc.pod and removed the
C<Can't "goto" into the middle of a foreach> error in favor of the general error.

Gerard Goossen

Thread Previous


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