in reply to Re: Make sure Perl 6 is introspective enough
in thread Make sure Perl 6 is introspective enough

Oh, I forgot a couple more forms of introspection: You'll be able to read yourself as a parse tree, as PASM (Parrot Assembler) code, and possibly as bytecode. These might be possible only at certian times in the life of the program -- the parse tree, in purticular, will probably get thrown out if unreferenced when we begin assembley. It will probably be possible to modify these semi-on-the-fly. It'll be possible to modify the parser during parsetime with BEGIN{} blocks.

It'll probably even be possible to make perl programs that contain inline PASM, and possibly even to write to coderefs in pasm.


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).

  • Comment on Re: Re: Make sure Perl 6 is introspective enough