in reply to Encapsulation through stringification - a variation on flyweight 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Encapsulation through stringification - a variation on flyweight objects
by robartes (Priest) on Apr 01, 2003 at 22:37 UTC | |
by theorbtwo (Prior) on Apr 02, 2003 at 05:12 UTC |