The stupid question is the question not asked | |
PerlMonks |
Re: Re: Re: Often Overlooked OO Programming Guidelinesby hardburn (Abbot) |
on Dec 29, 2003 at 22:00 UTC ( [id://317567]=note: print w/replies, xml ) | Need Help?? |
Holding refs to subroutines seems like a perfectly good way to do private methods:
The real problem is that Perl doesn't have a good way of denoting protected methods or attributes. I don't consider litering your code with $obj->isa( . . . ) or die; to be a good way. ---- : () { :|:& };: Note: All code is untested, unless otherwise stated
In Section
Meditations
|
|