in reply to Re^3: Can @_ be extended?
in thread Can @_ be extended?
Typeglobs will go away in Perl6, but they will be replaced by a more consistent := aliasing operator. In Perl5 you would write *foo = \@bar in Perl6 you would write @foo := @bar.
Though if I read Apocalypse 6 correctly then
Will alias @bar to @foo, in the same way as @foo := @bar does, for that call.sub foo (@foo is rw) { ... } foo(@bar);
I don't see a reason to avoid typeglobs if you must alias something in Perl5. Ponie (Perl5 running on Parrot) will certainly support typeglobs, and I don't a good reason to compleatly throw away a useful (but seldom to be used) technique just because the next major version of Perl will not use that syntax for aliases. Should I stop using objects in Perl5 because Perl6 has a totally different object syntax?
|
---|
Replies are listed 'Best First'. | |
---|---|
Perl5 features not present in perl6 (was Re: Can @_ be extended?)
by Tanktalus (Canon) on Feb 11, 2005 at 16:27 UTC |
In Section
Seekers of Perl Wisdom