NAME ^

src/pmc/parrotlibrary.pmc - Dynamic Library

DESCRIPTION ^

Class for holding info about a dynamic library.

     PMC data
     PMC_struct_val(SELF)   oplib init function
     PMC_data(SELF)         DLL handle

Properties:

    _filename               full path/file of lib
    _ro                     true after init

All ParrotLibrary PMCs are in interp->iglobals.

When a dynamic library (pmc or ops) is loaded, the load function returns a ParrotLibrary PMC.

Methods ^

void init()

Initializes the library with a NULL oplib init function.

void morph(INTVAL type)

Morphs to type.

PMC *clone()

Creates and returns a clone of the library.

INTVAL get_bool()

Returns whether a library has been successfully loaded.

STRING *get_string()

Returns the name of the loaded library.

SEE ALSO ^

    Date:    Mon, 29 Sep 2003 14:37:11 -0400 (EDT)
    Subject: Library loading and initialization sequence
    From:    Dan Sugalski

HISTORY ^

Initial version by leo 2003.10.12.


parrot