in reply to Re: OO Getters/Setters
in thread OO Getters/Setters

. . . for convenience, it be great to have something like, setDate($year,$month,$day)

Better still is to have a setDate method take a DateTime object, or one of CPAN's multitude of other Date objects, if you really want to.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: Re: OO Getters/Setters
by exussum0 (Vicar) on Dec 31, 2003 at 16:18 UTC
    Of course, but the point is of theoretical example with something that everyone can relate to that is tightly coupled. :)

    Play that funky music white boy..