Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
As some of you may have understood by some posts of mine I'm pursuing some interest in object orientation in Perl...
Now, I've read a few documents about fly-weight and inside-out objects, and while I understand perfectly
Question #2Also, I'm very curious as to know wether someone has ever met any situation in which it has been useful or sensible to have part of the data "inside" the object and part of it stored in a package lexical: possibly by still using the object's blessed reference as in index into a hash, or by some other technique... Perhaps, thinking of a reblessed object, as suggested to me in Re: Instance data inheritance?, such a technique may be used to include additional attributes to the child object without having to fiddle with the parent one's internals... In reply to Doubt about fly-weight objects. by blazar
|
|