On Thu, Aug 17, 2000 at 07:04:40PM +0200, Johan Vromans wrote: > And, what would the lvalue routine return? Currently, $a = $b = $c > implies that both $b and $a get the value $c. But with lvalue subs I > can write something like > > yech($foo) = $bar > > that assigns $bar to $foo, and returns something else (e.g., the > previous value of $foo). > > $a = yech($foo) = $bar > > now $a will no longer get $bar assigned. > > Do we want that? You already do with $a = $b = $c if $b happens to be tied and FETCH returns a different value to what was passed to STORE $a = $b = $c Does not mean $a will be assign $c, it means $a will get the result of assigning $c to $a. That is something different. Graham.
- RFC 118 (v1) lvalue subs: parameters, explicit assignm... Perl6 RFC Librarian
- Re: RFC 118 (v1) lvalue subs: parameters, explici... Chaim Frenkel
- Re: RFC 118 (v1) lvalue subs: parameters, explici... Andy Wardley
- Re: RFC 118 (v1) lvalue subs: parameters, exp... Nathan Wiger
- Re: RFC 118 (v1) lvalue subs: parameters,... Johan Vromans
- Re: RFC 118 (v1) lvalue subs: paramet... Graham Barr
- Re: RFC 118 (v1) lvalue subs: pa... Johan Vromans
- Re: RFC 118 (v1) lvalue subs: paramet... Buddha Buck
- Re: RFC 118 (v1) lvalue subs: pa... Johan Vromans
- Re: RFC 118 (v1) lvalue subs: paramet... Chaim Frenkel
- Re: RFC 118 (v1) lvalue subs: pa... Graham Barr
- Re: RFC 118 (v1) lvalue subs... Chaim Frenkel
- Re: RFC 118 (v1) lvalue subs... Damian Conway
- Re: RFC 118 (v1) lvalue ... perl6
- Re: RFC 118 (v1) lvalue ... Damian Conway
- Re: RFC 118 (v1) lvalue ... Chaim Frenkel