On Dec 6, 2004, at 6:27 PM, Matt Fowles wrote:

getters and setters
John Siracusa wanted to know if Perl 6 would allow one to expose a
member variable to the outside world, but then later intercept
assignments to it without actually having to switch to using getters and
setters in all of the code that uses the variable. The answer: yes, yes
you can.

And I would consider this a huge improvement over Perl 5's otherwise useful lvalue-able subs.


Cheers,

David



Reply via email to