Luke wrote:
> If you want to modify a parameter in place, you declare with C<is rw>.
> If you want to pass by-value, there might be a property for that, but
> I think this was recommended:  
> 
>     sub foo($bar_) {
>         my $bar = $bar_;     # Copy, not bind
>         # ... with $bar 
>     }

In the design meetings early this month we added C<is copy> for true
pass-by-value.

    sub foo($bar is copy) {
        ...
    }

There's a nice explanation of it in A6, which will be coming out fairly
soon now.

Allison

Reply via email to