HaloO,

Adriano Ferreira wrote:
Only

            sub foobar (@args) { push @args, 42 }

would change @some_array in

            foobar @some_array;

That is how I undestood that. Can someone confirm this belief?

I share your belief. It's up to others to confirm it. I just
want to add that I further believe that the push call is dispatched
on the type of the array and only succeeds if @array.does(Pushable).
I guess a default array does this or another role that implies it.
--
$TSa.greeting := "HaloO"; # mind the echo!

Reply via email to