Re: pass by reference

2019-12-08 Thread Joseph Brenner
Thanks, on both points. Come to think of it, you hardly ever *want* to pass an aggregate by value, so automatic aliasing ("raw" access) makes sense as a default. On 12/8/19, Brad Gilbert wrote: > Either use `rw` or `raw` > > Use `rw` if you need it to be mutable. > > Use `raw` if you just want

Re: pass by reference

2019-12-08 Thread Brad Gilbert
Either use `rw` or `raw` Use `rw` if you need it to be mutable. Use `raw` if you just want to make sure you are getting the actual variable. That really only applies to `$` parameters though. --- `@` and `%` parameters are `raw` already. sub pop-random( @_ ) { @_.splice( (0..@_.el