develooper Front page | perl.perl5.porters | Postings from October 2003

Re: [perl #24250] "return" required in some anonymous closures

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
October 20, 2003 06:14
Subject:
Re: [perl #24250] "return" required in some anonymous closures
Message ID:
20031020131312.GC2952@fdgroup.com
On Mon, Oct 20, 2003 at 02:47:36PM +0200, Elizabeth Mattijsen wrote:
> At 13:34 +0100 10/20/03, Nick Ing-Simmons wrote:
> > >so this looks like an optimizer problem to me: the $get sub is
> > >referring to something else than the package lexical $foo.
> >What is a 'package lexical' ?
> >  - things are either in package or lexical never both...
> 
> A package lexical is a lexical defined at the package "scope"?
> 
> 
> package Foo;
> my $package_lexical;
> {
>  my $not_a_package_lexical;
> }

No, $package_lexical is a file-scoped lexical; it has nothing whatsoever
to do with packages.

-- 
In the 70's we wore flares because we didn't know any better.
What possible excuse does the current generation have?

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