in reply to Re^5: Reference in Perl 6
in thread Reference in Perl 6
As I wrote before, everthing is a reference - except containers typed as native types,
So, everything except arrays and hashes? Is "$foo" in "my $foo = 'hi'" a reference?
Aliasing is now done via binding,
How would I create an alias (a reference) to a sub? Like this?:
sub foo($x, $y) { say $x ~ $y; }; my $foo_ref := foo; # ?
Thanks for the help. It looks like you have the beginnings of a perl6reftut here!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Reference in Perl 6
by moritz (Cardinal) on Aug 20, 2010 at 14:30 UTC | |
by Anonymous Monk on Aug 20, 2010 at 16:42 UTC | |
by moritz (Cardinal) on Aug 23, 2010 at 12:10 UTC | |
by Anonymous Monk on Aug 23, 2010 at 18:19 UTC |