Don't ask to ask, just ask | |
PerlMonks |
Re: RFC: Class::Moebiusby rrwo (Friar) |
on Feb 18, 2006 at 14:48 UTC ( [id://531148]=note: print w/replies, xml ) | Need Help?? |
The idea is worth pursuing. But it's already been done. I wrote Class::Tie::InsideOut to do just that-- while completely unaware of this thread. (I posted something on London.pm was was sent a link to this.) It works by using tied hashes to link hash keys to variables in the class namespace, and it enforces encapsulation by only letting methods use keys when there is a variable in the same namespace.
In Section
Meditations
|
|