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

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

Thread Previous
Gerard Goossen
January 9, 2011 02:42
Re: [PATCH] Make goto into a construct an error
Message ID:
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

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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About