Re: parameters: ref vs rw

2008-05-28 Thread TSa
HaloO, Larry Wall wrote: Mostly that means that rw will cause autovivification and ref won't. As noted in the 'assignable mutators (S06/Lvalue subroutines)' thread I assume that scalar containers as such cannot be autovivified, right? But not yet existing entries in an array or hash can be

parameters: ref vs rw

2008-05-10 Thread John M. Dlugosz
In S06, what is the difference between is ref and is rw? The text says that the rw may be converted to an lvalue, and that ref must already be. But what is that supposed to mean? --John

Re: parameters: ref vs rw

2008-05-10 Thread Brandon S. Allbery KF8NH
On 2008 May 10, at 21:46, John M. Dlugosz wrote: In S06, what is the difference between is ref and is rw? The text says that the rw may be converted to an lvalue, and that ref must already be. But what is that supposed to mean? At a guess, is rw makes a parameter variable into a local

Re: parameters: ref vs rw

2008-05-10 Thread Larry Wall
On Sun, May 11, 2008 at 01:46:57AM -, John M. Dlugosz wrote: : In S06, what is the difference between is ref and is rw? The text says that the rw may be converted to an lvalue, and that ref must already be. But what is that supposed to mean? Mostly that means that rw will cause

Re: parameters: ref vs rw

2008-05-10 Thread Larry Wall
On Sat, May 10, 2008 at 09:51:26PM -0400, Brandon S. Allbery KF8NH wrote: On 2008 May 10, at 21:46, John M. Dlugosz wrote: In S06, what is the difference between is ref and is rw? The text says that the rw may be converted to an lvalue, and that ref must already be. But what is that

Re: parameters: ref vs rw

2008-05-10 Thread John M. Dlugosz
Brandon S. Allbery KF8NH allbery-at-ece.cmu.edu |Perl 6| wrote: On 2008 May 10, at 21:46, John M. Dlugosz wrote: In S06, what is the difference between is ref and is rw? The text says that the rw may be converted to an lvalue, and that ref must already be. But what is that supposed to