RE: [Beanshell-users] RE: Announce: Upcoming BeanShell 1.3 Scoping Changes...
"Shankar Unni" <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <00a901c33b5d$45f901d0$7e0aa8c0@HQSHANKAR> |
White, John K wrote:
> sub foo() {
> $bar1 = "going down"; # global
> my $bar2 = "the road"; # local
> }
Actually, that's a pretty powerful argument for the proposed new rules, I
must admit. As long as the scoping rules are Perl-ish, that won't be a shock
to hard-code Perl-oids.
(Just don't implement the Perl "local" keyword! :-).
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php