develooper Front page | perl.perl6.language | Postings from December 2004

Re: Perl 6 Summary for 2004-11-29 through 2004-12-06

Thread Previous
From:
David Wheeler
Date:
December 7, 2004 19:11
Subject:
Re: Perl 6 Summary for 2004-11-29 through 2004-12-06
Message ID:
DDDFB31E-48C6-11D9-A770-000A95B9602E@kineticode.com
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


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About