In $foo->bar = 14;, I explained that I would like to use lvalue methods as object properties. shotgunefx, Aristotle and jimc pointed out that you'd no longer have a way of checking values. shotgunefx mentioned tieing. Here's the result:
Attribute::Property
Suggestions are welcome, of course. The module is intended to be uploaded to CPAN.
Update: Lots of great input from xmath (#perlhelp on efnet) integrated.
Update: Removed code, placed link.
Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).
In reply to $foo->bar = 14; revisited: Attribute::Property by Juerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |