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/

Reply via email to