ikegami's two posts still have the problems with multiple inheritance, the super class adding in new attributes at a later date (particularly during run time. If the Super::Class gets new attributes during runtime, it'll cause problems. Yeah, yeah, using constants as opposed to strings or whatnot keeps you from defining new ones at run time, but you can still add onto the index if you're using a closure or whatnot), and serialization if the classes are changed after storing

But, again, there's nothing "wrong" with it, if you don't care about the issues. I've got no dog in the fight, so if it works for you, go for it. You just need to remember them as potential gotchas.

And jdhedden, you may have missed my point. Using arrayrefs as your object isn't re-inventing anything (lord knows it's been around a lot longer than inside out objects), but if you do want to use arrayrefs as your underlying objects, there are some more gotchas to worry about. I just decided to illustrate the ones I'd encountered back before I gave up on 'em.


In reply to Re: Problems I've had with array based objects by jimt
in thread Problems I've had with array based objects by jimt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.