Think about Loose Coupling | |
PerlMonks |
Re: Encapsulation through stringification - a variation on flyweight objectsby Abigail-II (Bishop) |
on Apr 01, 2003 at 22:27 UTC ( [id://247371]=note: print w/replies, xml ) | Need Help?? |
That's what I am already doing with Inside-Out objects.
There are some problems though. First, you have a memory leak. If an object goes out of scope, you aren't cleaning up the attributes. To do so, write a DESTROY function (just like with Inside-Out objects). Second, you'll get a problem if you want to overload stringification. Abigail
In Section
Meditations
|
|