Re: FrozenBubble updates and Questions

[email protected] (chromatic)
Newsgroups perl.sdl.devel
Organization Snafu
Message-ID <[email protected]>
On Thursday 01 July 2010 at 06:54, Guillaume Cottenceau wrote:

> > if 0 is deprecated and should not be used. But I have reverted back.
> 
> Why not. My point is either leave it, or change it properly. But
> changing it by breaking the feature it is currently performing is not
> too good.

These are easy to fix.  Hoist the lexicals into a new outer scope by changing:

	# deprecated
	sub foo
	{
		my $x if 0;
	}

... to:

	{
		my $x;
		sub foo { ... }
	}

-- c
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.