develooper Front page | perl.perl6.language | Postings from August 2001

Re: Changes in addressing of package variables?

Thread Previous
Michael G Schwern
August 25, 2001 11:22
Re: Changes in addressing of package variables?
Message ID:
On Fri, Aug 24, 2001 at 09:20:26PM -0700, Brent Dax wrote:
> I was thinking about Perl 6 today, and thought of something: if the
> sigil is now part of a variable's name, does that mean that $Foo::bar
> should actually be Foo::$bar in Perl 6?

Techincally 'bar' is shorthand for the complete name, 'Foo::bar'.  So
'$Foo::bar' would remain.

Besides, Foo::$bar looks funny.


Michael G. Schwern   <>
Perl6 Quality Assurance     <>	     Kwalitee Is Job One
conway: unit of mind expansion.  One Conway == ~20 lines of Perl code
  found in $CPAN/authors/id/D/DC/DCONWAY, which gives the sensation
  of your brain being wrapped around a brick, with kiwi juice squeezed
  on top.
	-- Ziggy

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About