in reply to RFC: Autogenerating lvalue methods

Maybe I am missing something?

$x = sub:lvalue { $y };; $x->() = 3;; print $y;; 3

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.

Replies are listed 'Best First'.
Re^2: RFC: Autogenerating lvalue methods
by tlm (Prior) on Jul 01, 2005 at 19:51 UTC

    Thanks, that's good to know. On closer reading I realize I misinterpreted the following passage in the docs:

    ...there is no provision for applying package attributes to 'cloned' copies of subroutines used as closures.
    I misinterpreted this as referring to all closures.

    the lowliest monk