TSa Thomas.Sandlass-at-barco.com |Perl 6| wrote:

John M. Dlugosz wrote:
   for @foo {...}

is actually short for:

   for @foo <-> $_ {...}

Ups, I missed that one. Do we also have the fill-me idiom

     for @foo <- $_ {...}
No.  There is no concept of output parameters.

And again the question if this is the same as

     for @foo -> $_ is ref {...}
is rw, not is ref. But yes, the double-ended arrow is the same as making rw the default on all the parameters.

Regards, TSa.

Reply via email to