Nathan Wiger writes: > sub somesub { > my(@stuff) = @_; > # do nothing > } > > Then I think both of these should act exactly the same: > > somesub(@values); > somesub = @values; EUGH. No way! Assignment should be used to reflect (get this) assignment. Using it as argument passing is disgusting. I'm assuming you're not *advocating* this, merely pointing out that it's a side-effect of the RFC's suggested implementation. > I know that's not how 5.6 works, but it's what the RFC says. See what > I'm saying? Yeah. I think the RFC is wrong wrt how the lvalue subroutines get their arguments. If a subroutine can be passed a list of parameters, and can receive any number of parameters via assignment, how do you tell them apart? It's the same problem as: subcall(@a, @b); You can't tell where @a stops and @b begins. And you have to be able to, because the values may be serving completely different roles (keys into a database for @a, values stored there for @b). The RFC should tackle this. Nat
- RFC 107 (v1) lvalue subs should receive the rvalue as ... Perl6 RFC Librarian
- Make lvalue subs the default (was Re: RFC 107 (v1... Nathan Wiger
- Re: Make lvalue subs the default (was Re: RFC... Piers Cawley
- Re: Make lvalue subs the default (was Re:... Nathan Wiger
- Re: Make lvalue subs the default (was... Andy Wardley
- Re: Make lvalue subs the default (was Re: RFC... Jonathan Scott Duff
- Re: Make lvalue subs the default (was Re:... Nathan Wiger
- Re: Make lvalue subs the default (was... Jonathan Scott Duff
- Re: Make lvalue subs the default... Nathan Wiger
- Re: Make lvalue subs the def... Nathan Torkington
- Re: Make lvalue subs the... Nathan Wiger
- Re: Make lvalue subs the default (was Re:... James Mastros
- Re: Make lvalue subs the default (was Re: RFC... Nathan Torkington
- Re: Make lvalue subs the default (was Re:... Nathan Wiger
- Re: Make lvalue subs the default (was... Nathan Torkington
- Re: Make lvalue subs the default... Nathan Wiger
- Re: Make lvalue subs the default... Graham Barr
- Re: Make lvalue subs the default (was... Chaim Frenkel
- Re: RFC 107 (v1) lvalue subs should receive the r... Piers Cawley
- Re: RFC 107 (v1) lvalue subs should receive t... Jonathan Scott Duff