Well, there's going to be quite a number of p6 features (as I understand them) for what you want to do.

First off, let me qualm your major fear: perl6 is going to be at least as, and possibly quite a bit more, introspective as perl5. Symbol tables aren't going away, though they are changing a bit -- globs are going away, and the sigil will be stored in the symbol table, which is just a highly magical hash. New to perl6 is the $MY:: and $CALLER:: magic packages, which are like the symbol tables, but for lexical variables, in your and your caller's scopes. (Exactly what they're called and the semantics of $CALLER:: seem to vary depending on the phase of the moon, who'se talking, and what Larry had for breakfast.)

Also, all objects, including PMCs, will be able to (and most probably will) define a serilization method. Data::Dumper could use this.

Objects implemented in Perl, while not exactly hashes anymore, will be fully iteratable and serializable... I think.

Objects implemented as PMC (Parrot Magic Cookies) will likely not be iteratable, but will be serializable, if sensable. This isn't anything new, really -- objects implemented in XS can't be iterated over in perl5.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).


In reply to Re: Make sure Perl 6 is introspective enough by theorbtwo
in thread Make sure Perl 6 is introspective enough by John M. Dlugosz

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.