in reply to Re^2: Perl OO and accessors
in thread Perl OO and accessors
what would you do with $c->area = -42?
What you do with $c->set_area( -42 )?
how do you go back and change the interface later to avoid lvalue subs?
How do you go back and change the interface later to avoid set_foo methods?
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl OO and accessors
by sauoq (Abbot) on Nov 29, 2005 at 04:32 UTC | |
by Aristotle (Chancellor) on Nov 29, 2005 at 04:36 UTC | |
by sauoq (Abbot) on Nov 29, 2005 at 04:48 UTC | |
by fergal (Chaplain) on Nov 29, 2005 at 11:42 UTC | |
by sauoq (Abbot) on Nov 29, 2005 at 13:48 UTC | |
| |
by Aristotle (Chancellor) on Nov 29, 2005 at 06:21 UTC | |
by sauoq (Abbot) on Nov 29, 2005 at 04:43 UTC |