Allison Randal > parrot-1.0.0 > Parrot::PMC

Download:
parrot-1.0.0.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs

Module Version: 20081006   Source  

NAME ^

Parrot::PMC - access a Parrot PMC from Perl 5

VERSION ^

Version 20081006

SYNOPSIS ^

        # find a subroutine to invoke
        my $sub_pmc       = $interp->find_global( 'some_parrot_sub' );
        my $other_sub_pmc = $interp->find_global( 'another_sub', 'NameSpace' );

        # invoke the subroutine
        my $result_pmc    = $sub_pmc->invoke( $signature, @args );

        # get the values out of it
        my $string_val    = $result_pmc->get_string( $interp );

METHODS ^

This object provides several methods:

AUTHOR ^

chromatic, <chromatic at wgz.org>

BUGS ^

There are three known deficiencies. First, there should be separate classes for separate Parrot PMC types. Second, there should be overloadings to handle various types of getting and setting values on PMCs. Third, the invoke() methods do not handle enough signatures.

Patches welcome.

Please report any bugs or feature requests to the Parrot Porters mailing list. Someday there may be a CPAN version of this code. Who knows?

COPYRIGHT & LICENSE ^

Copyright (C) 2006-2008, Parrot Foundation / chromatic.

This program is free software; you can redistribute it and/or modify it under the same terms as Parrot itself.