Re: RFC 118 (v1) lvalue subs: parameters, explicit assignment, and wantarray() changes

2000-08-17 Thread Andy Wardley
On Aug 16, 8:21pm, Perl6 RFC Librarian wrote: # this is perl6 sub foo :lvalue ($new) { $variable = $new; } A nice idea, but one of the reasons for the original proposal was to make $foo-bar = $x; behave the same as: $foo-bar($x); Your proposal provides a neat solution for

Re: RFC 118 (v1) lvalue subs: parameters, explicit assignment, and wantarray() changes

2000-08-17 Thread Buddha Buck
At 07:04 PM 8/17/00 +0200, Johan Vromans wrote: Nathan Wiger [EMAIL PROTECTED] writes: Most of the places I've seen them used really well is if they walk and talk like other forms: $cgi-param($var, @val); # traditional $cgi-param($var) = @val; # lvalue, but same thing I

Re: RFC 118 (v1) lvalue subs: parameters, explicit assignment, and wantarray() changes

2000-08-17 Thread Buddha Buck
At 05:49 AM 8/18/00 +1000, Damian Conway wrote: And I keep pointing out that this is only one aspect of lvalue subroutines. The point of an lvalue subroutine is not to make assignment to the return value work, it is to make the return value an *lvalue*. That's a much more general thing, because