On Aug 16, 9:06am, Jonathan Scott Duff wrote:
> Passing the lvalue via some other means eliminates this problem. I
> forget who suggested it (Buddha Buck?) but
>
> sub foo : lvalue($value) { ... }
That should tie in with function prototypes in general, but I suspect
that the prototype should be on the function name, not on the attribute.
sub foo ($value) : lvalue { }
Thus the prototype covers both cases:
$x->foo($y);
$x->foo = $y;
A
--
Andy Wardley <[EMAIL PROTECTED]> Signature regenerating. Please remain seated.
<[EMAIL PROTECTED]> For a good time: http://www.kfs.org/~abw/
- Re: Make lvalue subs the def... Chaim Frenkel
- Re: RFC 107 (v1) lvalue subs should recei... Buddha Buck
- Re: RFC 107 (v1) lvalue subs should r... Chaim Frenkel
- Re: RFC 107 (v1) lvalue subs sho... Buddha Buck
- Re: RFC 107 (v1) lvalue subs should receive the rvalue... Piers Cawley
- Re: RFC 107 (v1) lvalue subs should receive the r... Jonathan Scott Duff
- Re: RFC 107 (v1) lvalue subs should receive t... Piers Cawley
- Re: RFC 107 (v1) lvalue subs should receive t... Chris Nandor
- Re: RFC 107 (v1) lvalue subs should recei... Chaim Frenkel
- Re: RFC 107 (v1) lvalue subs should r... Nathan Torkington
- Re: RFC 107 (v1) lvalue subs should receive t... Andy Wardley
- Re: RFC 107 (v1) lvalue subs should recei... Buddha Buck
- Re: RFC 107 (v1) lvalue subs should receive the rvalue... skud
