Sex, 2008-09-19 às 10:25 -0700, Jon Lang escreveu:
Daniel Ruoso wrote:
In SMOP, it is handled based on the package of the Class, the private
storage inside the object is something like
$obj.^!private_storageA::$!bar
and
$ojb.^!private_storageB::$!bar
Note that this ought only be
According to the test suite (t/spec/S29-array/kv.t), the .kv
method is defined on arrays to produce an interleaved list
of indices and values:
my @array = a b c d;
say @array.kv.perl; # [ 0, a, 1, b, 2, c, 3, d ]
The kv.t file also shows a functional form of kv():
my @array = a
I'm pondering what the proper syntax is for a subroutine parameter with both a
trait and a default. That is...
sub foo ($arg = 42)
and
sub foo ($arg is readonly)
together in one parameter. Would that be
sub foo ($arg = 42 is readonly)
or
sub foo ($arg is